In my main program I am running 1 User Thread and all its child are daemon threads. Because of this when the user thread finished its working all daemon threads terminates as well. I am executing some code block in daemon threads that must be finished before thread termination.
Is it possible to wait for a particular block execution in daemon thread if user threads finished their working?
You can implement this different ways