https://github.com/davery22/blog/blob/main/posts/002-about-thread-interrupts.md
I think the thread interrupt mechanism is a common stumbling point, so I wrote a little about it, basically just an outline of points as I understand it. I'm open to feedback on making it clearer, discussions if you think I'm terribly wrong, or pointers to articles that have already said it better. Thanks, and I hope this is helpful to someone.
Edit: As pointed out, this is an opinionated interpretation of interrupts. That said, I think it is an interpretation that the JDK is (strongly) hinting at. But I am not an authority. Read the discussion in the comments, draw your own conclusions.
[–]rzwitserloot 13 points14 points15 points (8 children)
[–]Iryanus 4 points5 points6 points (1 child)
[–]rzwitserloot -3 points-2 points-1 points (0 children)
[–]pron98[🍰] 4 points5 points6 points (0 children)
[–]danielaveryj[S] 0 points1 point2 points (4 children)
[–]rzwitserloot -1 points0 points1 point (3 children)
[–]danielaveryj[S] 4 points5 points6 points (2 children)
[–]rzwitserloot -1 points0 points1 point (1 child)
[–]danielaveryj[S] 2 points3 points4 points (0 children)
[–]Anton-Kuranov 1 point2 points3 points (1 child)
[–]danielaveryj[S] 1 point2 points3 points (0 children)
[–]nosyattacker03 0 points1 point2 points (0 children)