Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #6104

Re: pthread creation fails with EAGAIN

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Ian Collins <ian-news@hotmail.com>
Newsgroups comp.lang.c++
Subject Re: pthread creation fails with EAGAIN
Date Fri, 03 Jun 2011 11:07:37 +1200
Lines 19
Message-ID <94qjdpFbjiU2@mid.individual.net> (permalink)
References <81a1b956-ee96-4443-a8b1-f4862e051c4a@35g2000prp.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net z0N0+0ATXldcOnwcl3ljqQMUAWdTMK9hN3ZEJGYMcnprjYrQmD
Cancel-Lock sha1:1FR50Hg+DfOLe6d6B/rjKeffpg8=
User-Agent Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.2.9) Gecko/20101021 Lightning/1.0b2 Thunderbird/3.1.4
In-Reply-To <81a1b956-ee96-4443-a8b1-f4862e051c4a@35g2000prp.googlegroups.com>
Xref x330-a1.tempe.blueboxinc.net comp.lang.c++:6104

Show key headers only | View raw


On 06/ 3/11 11:02 AM, Jaydeep Chovatia wrote:
> Hi,
>
> I am using pthread_create API in my application. My application is
> creating many threads, after some time I started receiving following
> error from pthread_create API call:
>
> "EAGAIN Resource temporarily unavailable"
>
> I would like to know what are the possible reason behind this error.
> Any help on this would be appreciated.

man pthread_create.

The error says it all, your system "lacked the necessary resources to 
create another thread" to quote from my man page.

-- 
Ian Collins

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

pthread creation fails with EAGAIN Jaydeep Chovatia <chovatia.jaydeep@gmail.com> - 2011-06-02 16:02 -0700
  Re: pthread creation fails with EAGAIN Ian Collins <ian-news@hotmail.com> - 2011-06-03 11:07 +1200
    Re: pthread creation fails with EAGAIN red floyd <redfloyd@gmail.com> - 2011-06-02 16:42 -0700
      Re: pthread creation fails with EAGAIN Pete Becker <pete@versatilecoding.com> - 2011-06-02 14:19 -1000
        Re: pthread creation fails with EAGAIN red floyd <no.spam.here@its.invalid> - 2011-06-02 23:40 -0700

csiph-web