Previously, we introduced the
ACE_Task family and thread creation. This chapter goes into the details of how you can create various types of threads in varying states in accordance with your requirements. We also discuss how running threads can be managed: suspending and resuming threads, creating and waiting on threads that are in “thread groups,” canceling running threads, and incorporating start-up and exit hooks for the threads that you create.
In the previous chapter, we glossed over the fact that you can create threads with special attributes by passing various flags to the
ACE_Task_Base::activate() method. These attributes define, among other things, how the new thread will be created, ...