Test and test-and-set: Difference between revisions

Content deleted Content added
No edit summary
Tags: Mobile edit Mobile web edit
m Corrected the comment in line 4, of the first pseudocode.
Line 8:
'''procedure''' EnterCritical() {
'''do''' {
'''while''' (locked == true) //'''skip the''' the ''// spin until the lock '''''seems''''' free
} '''while''' TestAndSet(locked) ''// actual atomic locking''
}