D create many thread

tchaloupka chalucha at gmail.com
Thu Feb 6 22:00:26 UTC 2020


On Wednesday, 5 February 2020 at 13:05:59 UTC, Eko Wahyudin wrote:
> Hi all,
>
> I'm create a small (hallo world) application, with DMD.
> But my program create 7 annoying threads when create an empty 
> class.
>

If you don't want the parallel sweep enabled for your app, you 
can turn it of ie with:

```
extern(C) __gshared string[] rt_options = [ "gcopt=parallel:0" ];
```

Or in various other ways as described in mentioned documentation: 
https://dlang.org/spec/garbage.html#gc_config




More information about the Digitalmars-d-learn mailing list