Content deleted Content added
m Qwertyus moved page Test and Test-and-set to Test and test-and-set |
mNo edit summary |
||
Line 17:
}
The entry protocol uses normal memory reads to spin, waiting for the lock to become free. Test-and-set is only used to try to get the lock when normal memory read says it's free. Thus the expensive atomic memory operations
If the [[programming language]] used supports [[short-circuit evaluation]], the entry protocol could be implemented as:
|