Suspending and resuming execution  Chapter 33: Creating Service Components

Chapter 32: Using the Thread Manager

Stopping threads

You can only stop threads that return from their run method. The Thread Manager stops each thread the next time it returns from its run method.

You can stop threads in two ways:

If you stop all threads by calling ThreadManager::stop or setting the thread count to 0, you must reset the thread count to a positive value or -1 (meaning infinity) before starting more threads.





Copyright © 2005. Sybase Inc. All rights reserved. Chapter 33: Creating Service Components

View this book as PDF