Previous | Next --- Slide 55 of 64
Back to Lecture Thumbnails

It is important that each thread stored the id of the block to which the work belongs, so that it can increment the counter of completed pieces of work once completed. When the counter "done" equals the number that were initially spawned "spawn", the join is complete and the next instruction bar() can be executed.