Messaging Java Help

After you divide your program into separate threads, you need to define how they will communicate with each other. WheN programming with most other languages, you must depend on the operating system to establish communication between threads. This, of course, adds overhead. By contrast, Java Provides o clean. low-cost way for two or more threads to talk to each other, via calls to predefined methods that. all. objects have. Java’s messaging system allows a thread to enter a synchronized method on an object, and then wait there until some other thread explicitly notifies it to come out

[vfb id=1]

Posted on September 17, 2014 in The Complete Reference

Share the Story

About the Author

Back to Top
Share This