Rob Prime wrote:To be honest, I come to the same conclusion.
The current thread starts this new thread. It should not block afterwards. However, this new thread needs to be limited in time. Using join on this thread from the current thread will block the current thread. To prevent that, the current thread starts two threads:
- the timed thread
- a thread that will call join on the timed thread
2 threads - thats really nice! Good one,Rob!