DEV Community

Sameer
Sameer

Posted on

Answer:

Note that forkIO spawns a green thread, not an O/S thread, so if you spawn 1000 forkIO threads to handle simultaneous requests, that does not correspond to 1000 separate O/S (or "CPU") threads.

Anyway, yes, the RTS handles multiple blocking read/write calls concurrently without tying up O/S threads. In fact…

Top comments (0)