自学内容网 自学内容网

windows kernele sync mechanism -- ERESOURCE

for ERESOURCE, I’ll make it shorter, just call it ER

IR is in fact a kind of lock

it can be acquired either shared or exclusive

in shared mode, the lock will aloow multiple thread to acquire the same ER, and read the data simultaneously

in exclusive, the kernel will ensure that there can only be one thread is holding ER, thus the data can be access atomically

in the words, ER allow multiple thread to read and allow only one thread to write, so ER is often refferred as reader/writer lock

ER can only be used when IRQL < DISPATCH_LEVEL, which is <= APC_LEVEL


原文地址:https://blog.csdn.net/ma_de_hao_mei_le/article/details/140397548

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!