The synchronization details we discussed so far were related to a data flow that is generated in the background thread context and has to be used in another thread. The other thread can be the main thread or another background thread. In this recipe, you'll use a simple synchronization mechanism called event, which can be useful when you have to notify a new state, not necessarily new data. Obviously, the new state could also mean there is new data to handle. In such cases, the state change alerts you about new data being available.
Synchronizing multiple threads using TEvent
Getting ready
The recipe scenario is simple: you have a lot of running threads that are doing something for you. You want to know when all of them...