Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 02 Jun 2011 19:19:03 -0500 From: Pete Becker Organization: Roundhouse Consulting, Ltd. Newsgroups: comp.lang.c++ Date: Thu, 2 Jun 2011 14:19:03 -1000 Message-ID: <2011060214190328427-pete@versatilecodingcom> 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: 8bit Subject: Re: pthread creation fails with EAGAIN User-Agent: Unison/2.1.4 Lines: 36 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-P2ne+yFuKzirPCcRtyHscYfUohpZuNlcqj+jXEwES/F1Me2iaomgq55jv46hld7fOC1B+89wHT7lwCh!n4/IUnXJtmR7ex5Ry3OI7qpd7NHE1LEa0U+3H0ax9cZYLQMWv0laSEByatovpjkNfMutR9M= X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2379 Xref: x330-a1.tempe.blueboxinc.net comp.lang.c++:6107 On 2011-06-02 13:42:21 -1000, red floyd said: > On Jun 2, 4:07 pm, Ian Collins wrote: >> 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. >> > > What Ian said. Any futher questions should be asked in a forum > relevant > to your OS, since pthread_create is not part of the C++ language (even > in C++11). On he other hand, EAGAIN *is* part of C++ 11. C++11 has a new header, , which defines the same identifiers as POSIX's . -- Pete Roundhouse Consulting, Ltd. (www.versatilecoding.com) Author of "The Standard C++ Library Extensions: a Tutorial and Reference (www.petebecker.com/tr1book)