Cancels any current call to delay for the specified thread.
#include <unistd.h> int cancel ( int t_id);
(IN) Specifies the target thread, exactly as returned by the function that created the thread.
If successful, returns 0. Otherwise, returns -1 and sets errno to one of the following: