How can I return to the main thread from another thread when there is an exception. When an exception occurs in the child thread, I want the notification to be sent to the main thread and execute the method from the main thread. How can i do this?
Thanks.
Additional Information
I call the method from my main method and start a new thread there after some calculations and changes
Thread thread = new Thread() { @Override public void run() { ..... } } thread.start();
java multithreading
lostInTransit
source share