While working on an application, let's say there are several places which require data protection via locking—in other words, several critical sections:
We have shown the critical sections (the places that, as we have learned, require synchronization—locking) with the solid red rectangles on the timeline. The developer might well realize, why not simplify this? Just take a single lock at time t1 and unlock it at time t6:
This will work in ...