4 ms·
Haskell's green threads are cooperative on memory allocation. If no memory is allocated, then a green thread will not be preempted. In practice, memory allocat
by phamilton 9y ago
Haskell's green threads are cooperative on memory allocation. If no memory is allocated, then a green thread will not be preempted.
In practice, memory allocation happens a lot, so it's pretty close to preemptive.