What is a “spark” in Haskell
Sparks are not threads. forkIO introduces Haskell threads (which map down onto fewer real OS threads). Sparks create entries in the work queues for each thread, from which they’ll take tasks to execute if the thread becomes idle. As a result sparks are very cheap (you might have billions of them in a program, while … Read more