Previous | Next --- Slide 20 of 66
Back to Lecture Thumbnails
lexicologist

P1 has the lock the entire orange time but only has the cache line at the beginning and the end of the orange section

endofmoore

Immediately after acquiring the lock, the cacheline P1's cacheline is invalidated because other processors are fighting for the cacheline and keep on acquiring exclusively and then having theirs invalidated. Once P1 is done, it reacquires and releases the lock.

endofmoore

The use of a ticket lock would decrease the coherency traffic of test-and-set.

Please log in to leave a comment.