GC deadlocks on linux
Steven Schveighoffer via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Feb 19 14:12:02 PST 2015
On 2/19/15 12:01 PM, ketmar wrote:
> On Thu, 19 Feb 2015 16:33:58 +0000, Byron Heads wrote:
>
>> Now I am not sure. This code runs correctly:
>
> as i told you before, `fork()` is hard. you can experiment for monthes
> seeing strange bugs here and there, and seeing no bugs, and strange bugs,
> and...
>
> there are alot of things going on under the hood, and alot of things
> aren't. strictly speaking you *CAN'T* get cloned process in the same
> state as it's parent. it may work, though, if stars are in a good shape.
Just as an example, Sociomantic uses a concurrent GC based on forking.
I'm not sure what the issue here is, but I don't think forking is as
unstable as you seem to think, or maybe I'm reading this wrong. I can
agree there are many gotchas with forking.
-Steve
More information about the Digitalmars-d-learn
mailing list