Content deleted Content added
No edit summary |
Undid revision 457396097 by 138.163.128.41 (talk): In most languages != is for not-equal not assignment |
||
Line 5:
is used. The main idea is ''not'' to [[Busy waiting|spin]] in test-and-set but increase the likelihood of successful test-and-set by using the following entry protocol to the lock:
''boolean'' locked
'''procedure''' EnterCritical() {
'''do''' {
Line 14:
Exit protocol is:
'''procedure''' ExitCritical() {
locked
}
|