#InterThreadCommunication #ThreadCommunication #Multithreading
=============================
What is Inter thread communication?
Two or more threads exchange information or communicating each other.
It is all about making synchronized threads communicate with each other.
ITC concept is one of the specialized form of inter process communication of operating system.
One thread paused for it critical section/region and another thread is allowed in same critical section/region to be executed.
It helps to avoid thread pooling (is usually implemented by loop to check some condition repeatedly. Once condition is true appropriate action is taken. This waste CPU time).
How many ways to implement ITC?
Using wait, notify or notifyAll method – Both methods are non-static, final and from object class.
Where ever use wait method, it releases a lock and allow other threads.
If thread is in wait state then only notify method can invoke that thread after invoked, thread come back in runnable state.
Methods can only be invoked from synchronized code. And must be in try catch block because it throws IOException.
Auf dieser Seite können Sie das Online-Video 6 - What Is Inter Thread Communication In Java? | Multithreading | Almighty Java mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Almighty Java 25 Oktober 2018 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,836 Mal angesehen und es wurde von 13 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!