on the number of ghc_worker threads on executables

4 Jul
2017
4 Jul
'17
2:44 p.m.
Dear list I noticed that on -threaded programs, even with just 1 capability (+RTS -N1) the number of worker tasks is usually more than 3. Examples of this are glirc and taffybar. What factors determine the number of Tasks/worker Tasks (OS threads) on a program? -- -- Ruben Astudillo -- PGP: 4EE9 28F7 932E F4AD

4 Jul
4 Jul
4:43 p.m.
New subject: on the number of ghc_worker threads on executables
Others may have more insights, but with -threaded, `safe` FFI calls run in their own threads as to not block your Haskell thread. So even with -N1 you can have (arbitrarily?) many OS threads, depending on how many safe foreign calls you do.
2878
Age (days ago)
2878
Last active (days ago)
1 comments
2 participants
participants (2)
-
Niklas Hambüchen
-
Ruben Astudillo