what is inter thread communication?
Inter thread communication is a process of communication between two threads. In this process, a thread outside the critical section is tried to run inside the critical section where a thread is already running. It is possible only when a thread inside the critical section is paused or its task is ended or there is no thread running inside the critical region. Then the question is how a thread outside the critical region can know that it can execute inside the critical section. For this the threads sends a signal using which they can know whether they are allowed to be executed inside the critical section or not. This can be possible by implementing some methods these methods are:
For detail tutorial please go through the following links :