This program should not print two true,. Why am I printing two false?

clipboard.png

clipboard.png

clipboard.png

Mar.08,2022

take a closer look at API:

Interrupting a thread that is not alive need not have any effect.
interrupting inactive threads has no effect

when you call interrupt , the thread has already ended.

Menu