Thread synchronization

shape