Thread overview
Automatically-created threads (just want to understand)
Oct 13, 2022
glathoud
Oct 13, 2022
kinke
Oct 13, 2022
Guillaume Lathoud
October 13, 2022

Hello,

after migrating a project from LDC 1.10.0 to 1.30.0, I now see (1) a significant speedup & less memory usage - many thanks for that - and (2) for each process (originally single-thread), up to 1+N_CPU threads, which are active once in a while. These threads are automatically created, unless I am mistaken.

Just to understand: what are these threads for? Do they have anything to do with disk I/O? Something else?

Best regards,
Guillaume

October 13, 2022

On Thursday, 13 October 2022 at 05:56:47 UTC, glathoud wrote:

>

Just to understand: what are these threads for? Do they have anything to do with disk I/O? Something else?

Hi; these are created and used by the GC (by default), see https://dlang.org/changelog/2.087.0.html#gc_parallel.

October 13, 2022

On Thursday, 13 October 2022 at 09:32:45 UTC, kinke wrote:

>

On Thursday, 13 October 2022 at 05:56:47 UTC, glathoud wrote:

>

Just to understand: what are these threads for? Do they have anything to do with disk I/O? Something else?

Hi; these are created and used by the GC (by default), see https://dlang.org/changelog/2.087.0.html#gc_parallel.

Thanks!