[m-rev.] Bug: semi-empty program starts 32 threads

Julien Fischer jfischer at opturion.com
Sat Dec 30 21:29:14 AEDT 2023


On Sat, 30 Dec 2023, Volker Wysk wrote:

> Can anyone solve this puzzle? Is it a bug? What's going on?

Half of them are marker threads started by the Boehm garbage collector;
the other half are started by the Mercury runtime for running Mercury
threads, parallel conjunctions etc. (Both GC and the runtime default to
using as many threads as there are processors.)

In low-level C grades Mercury threads (which the runtime calls contexts)
and POSIX threads are *not* the same thing.

Julien.


More information about the reviews mailing list