Previous | Next --- Slide 26 of 30
Back to Lecture Thumbnails
shabnam

Can someone explain how latency is O(P).

jinsikl

@shabnam I think it's because all the processors (P of them) have to each lock, add one to the count, and unlock. And this sequence can only be executing by a single processor. So this means that there's serialized access to a single variable. Which equates to a latency that grows linearly with the number of processors.