What is used instead of SendMessage and PostMessage in Java to handle inter-thread communications?
Posted
by Kieveli
on Stack Overflow
See other posts from Stack Overflow
or by Kieveli
Published on 2010-03-22T14:36:44Z
Indexed on
2010/03/22
15:41 UTC
Read the original article
Hit count: 239
I'm from a WinAPI / C++ background, and I'm curious as to what the Java world uses in place of a threaded message loop in a worker thread to handle communications and interactions between threads. The idea is to use a message pump in both the worker thread, and the main thread, and have them posting messages back and forth. This solution is very WinAPI / C++ centric, and probably not the preferred method of achieving this goal in Java.
What is the 'Java' way to do something like this?
© Stack Overflow or respective owner