bug-commoncpp
[Top][All Lists]
Advanced

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

Re: Thread.join() ?


From: Federico Montesino Pouzols
Subject: Re: Thread.join() ?
Date: Thu, 15 May 2003 14:12:56 +0200
User-agent: Mutt/1.5.4i

        I have just tested you example with the code in CVS and it
works fine. It may be an issue with your glibc or your kernel, as join
is a recent addition and I had not ever seen it failing. Also, the
strange behaviour of yield suggest that there is something very weird
in you system.

On Wed, May 07, 2003 at 11:22:17AM +0200, Étienne Dupuis wrote:
> Greetings,
> 
> Method Thread.join() seems to never return. On Linux, with Common C++ 1.0.9, 
> consider the following program :
> 
> int main()
> {
>     class Wait : public Thread {
>         protected :
>             virtual void run() {
>                 sleep(1000);
>             }
>     };
> 
>     Wait wait;
>     wait.start();
>     wait.join();
> 
>     return 0;
> }
> 
> It never ends as it is stuck in the join() method. However, on Windows 2000 
> it works correctly. Moreover, method Thread::yield() yields as much as one 
> second (!) on my Linux machine but works as expected on Windows.
> 
> Anyone got similar problems ? Should I consider that my Linux kernel is the 
> culprit ? Kernel version is 2.4.18-14.
> 
> Thanks, Étienne Dupuis

> _______________________________________________
> Bug-commoncpp mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp





reply via email to

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