阅读背景:

what happens if Interrupts occur after mutex lock has been acquired

来源:互联网 

I have a multi-threaded C/C++ program that services read and write requests very frequently. For synchronization purposes, I have used a mutex for locks and unlocks. All read and write threads acquire lock before performing their operations. What happens if one thread acquires lock and before it could release the locks, interrupt occurs ? Would the thread resume execution or I would have to handle it manually ?I have a multi-threaded C/C++ program that serv




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: