Question

I don't quite understand what eg HaLVM or similar technologies do in terms of (OS) threads.

I understand that when compiling code with the option -threaded then the Haskell multithreaded RTS will use OS threads to re-allocate existing Haskell threads and thus avoid blocking behaviour of foreign calls. Now, when you use the HaLVM you probably don't have to make any foreign calls. However, I wonder how this all blends, and how many worker threads the HaLVM does run. Are there no other situations where the absence of OS worker threads may lead to blocking or otherwise undesired behavior?

Was it helpful?

Solution

The HaLVM uses the single-threaded GHC runtime.

Porting HaLVM to use the threaded runtime, with support from multicore Xen would be an interesting project.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top