Canceling a Runnable
Canceling a runnable is implemented by the following functions:
*RWWaitStatus RWRunnable::requestCancellation(void)
*RWWaitStatus RWRunnable::requestCancellation(unsigned long milliseconds)
*void RWRunnableSelf::serviceCancellation(void)
*void rwServiceCancellation();
Cancellation is used to request a thread to exit a runnable. The cancellation operations are similar in function to the interrupt operations. Like the interrupt, cancellation is a synchronous process; a thread can only be canceled if it chooses to be.