multithreading - when a thread is blocked.can cause the blocking of another thread in the same process or the whole process? -


when thread being blocked necessary thread blocks other threads in same process or process?is happening every time?

sure. wouldn't have cope deadlock if wasn't case. scenario blocked thread acquired synchronization object thread tries acquire well. block.

okay, question now. generally, yes. other code needs run release blocking condition. non-obvious cases kernel threads run code in drivers if thread blocked on i/o. or thread scheduler, in case thread blocked because waiting acquire processor or waiting non-infinite time-out.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -