Virtual threads were meant to make blocking code cheap again. For sockets they do. For files they don’t. Three versions of the same read follow. The first one pinned a carrier thread. The second worked, but…
Virtual threads were meant to make blocking code cheap again. For sockets they do. For files they don’t. Three versions of the same read follow. The first one pinned a carrier thread. The second worked, but…