Content deleted Content added
added 'the' to the phrase "by using 'the' following entry protocol to the lock:" |
|||
Line 3:
To lower the overhead a more elaborate locking protocol '''test and test-and-set'''
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 := false ''// shared lock variable''
|