sleep 중 interrupt가 예외와 flag 복원으로 전달되는 길

대기 해제부터 상위 취소 신호 보존까지 네 사건을 잇는다.

  1. interrupt 호출

    대상에게 취소 의사를 보낸다

    request
  2. sleep 해제

    InterruptedException이 발생한다

    wake
  3. flag 소거

    catch 진입 시 false다

    API rule
  4. 재설정

    currentThread.interrupt로 상위에 남긴다

    restore

핵심: 최상위 owner가 종료할 경우에는 cleanup 후 반환하고 outcome을 기록한다.