Define thread cancellation & target thread.
The thread cancellation is the task of terminating a thread before it has completed. A thread that is to be cancelled is often referred to as the target thread. For instance, if multiple threads are concurrently searching by a database and one thread returns the result, the remaining threads may be cancelled.