I understand that when reaching cancellation point it's checked whether request to cancel thread was made or not. In my code the request is made AFTER thread enters sleep(1000) call.
So can anyone explain exactly when is cancellation status checked ? is that when reaching cancellation point or during execution of cancellation point call given the sleep() example