Understanding Javas Project Loom
If you look carefully, you will see InputStream.read invocations wrapped with a BufferedReader, which reads from the socket’s enter. That’s the blocking call, which causes the digital thread to turn out to be suspended. Using Loom, the check completes in…