bug-commoncpp
[Top][All Lists]
Advanced

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

Re: Bug in thread code


From: Albert Strasheim
Subject: Re: Bug in thread code
Date: Wed, 1 Jan 2003 17:44:26 +0200
User-agent: Mutt/1.4i

Hello,

On Tue, 31 Dec 2002, Marcel Stadtmann wrote:

> I found a bug in the thread code section. (Used Version GNU Common 
> C++ '2' 1.0.7) After starting abount 1024 thread's, i got the 
> errorcode 11.

Error 11 seems be EAGAIN. It is returned by pthread_create when not 
enough system resources to create a process for the new thread are 
available, or more than PTHREAD_THREADS_MAX (16384 on my system) 
threads are already active.

I am not surprised that starting 1024 threads causes this error. To 
compare, my system is currently only running about 66 processes in 
total.

It might be possible to start this many threads using the new pthreads 
implementation that the RedHat folks are working on (also requires a 
recent 2.5.x kernel), but any design requiring 1024 threads probably 
still requires some rethinking.

Cheers,

Albert



reply via email to

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