I want to throw an exception from a runnable thread but its not possible to throw it from thread so can we pass the status(any exception ) of chlild thread to parent thread?.
I read about thread.join() but in this case parent thread waits untill child thread finishes its excecution.
In my case my parent thread start threads one by one after some period of time ,but when any thread throws exception ,it should notify the paent about the failure so that parent thread does not start other threads.
is there any way to implement it ? can anyone help me do solve this.