O'Reilly logo

ACE Programmer's Guide, The: Practical Design Patterns for Network and Systems Programming by Umar Syyid, James CE Johnson, Stephen D. Huston

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 13. Thread Management

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.

13.1 Types of Threads

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required