sscasc@tumkur thread is awake now thread going to sleep for seconds thread is awake now thread going to sleep for seconds thread is awake now thread going to sleep for seconds thread is awake now thread synchronization it is defined as mechanism which ensures that two or more concurrent threads do not simultaneously execute some particular program segment known as critical section critical section refers to the parts of the program where the shared resource is accessed when thread is already acting on an objectpreventing any other thread from acting on the same object is called is called thread synchronization it is implemented using the following techniqueslocks semaphores locks are used to lock objects on which the thread is actingafter completion of executionit will unlock the object and comes out locks is created by creating object of class lock as shown below =lock(to lock the object,we should use the acquire(as axquire(to unlock or release the object,release(method is used as release****sp_python programming