Test and test-and-set: Difference between revisions

Content deleted Content added
Znok (talk | contribs)
Poignancy, explanation of underlying mechanisms
Znok (talk | contribs)
m editorial
Line 35:
the knowledge of who is blocking on what. Consequently, the scheduler will have to guess on how to allocate CPU time among the threads -- typically just allowing the threads to use up their timing quota. Threads will end up burning CPU cycles spinning, waiting for threads that are not scheduled.
 
By using operating-system provided lock objects, such as mutexes, the OS can schedule exactly thosethe unblocked threads ready to run.
 
==See also==