digitalmars.D - Garbage-Collector And Threads
- Denis Washington (2/2) May 01 2005 I'm suggesting to write an OS with D, and have one big question: does th...
- Ben Hinkle (6/9) May 01 2005 The garbage collector does not require multi-threading and currently a
- Sean Kelly (4/6) May 02 2005 No, and no, respectively :) The GC is run when you call 'new' and it's ...
I'm suggesting to write an OS with D, and have one big question: does the D garbage-collector require multi-threading? Does it run in it's own thread?
May 01 2005
"Denis Washington" <Denis_member pathlink.com> wrote in message news:d52r38$2obn$1 digitaldaemon.com...I'm suggesting to write an OS with D, and have one big question: does the D garbage-collector require multi-threading? Does it run in it's own thread?The garbage collector does not require multi-threading and currently a collection is run in the thread that made the allocation request. Other garbage collectors could run in a separate thread, though - the language makes no assumption the issue.
May 01 2005
In article <d52r38$2obn$1 digitaldaemon.com>, Denis Washington says...I'm suggesting to write an OS with D, and have one big question: does the D garbage-collector require multi-threading? Does it run in it's own thread?No, and no, respectively :) The GC is run when you call 'new' and it's run in the context of the calling thread. Sean
May 02 2005