bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug while calling dlcose


From: marco
Subject: Re: Bug while calling dlcose
Date: Mon, 19 May 2003 09:29:30 +0200 (CEST)

>> A has the funtion stop().
>> A calls makethread() in B.
>> makethread() (in B) creates a new thread and returns to A.
>> A starts and endless loop (for (;;);)
>> The thread in B calls stop() in A.
>> --At this point no thread uses the memory of B--
>
> Bzzt.  When stop returns, it returns to the function in B that called
> it. That code no longer exists.

Stop doesn't return(that's why I called it stop), it calls exit(). I'm
sorry for the confusion.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]