Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #6103 > unrolled thread
| Started by | Jaydeep Chovatia <chovatia.jaydeep@gmail.com> |
|---|---|
| First post | 2011-06-02 16:02 -0700 |
| Last post | 2011-06-02 23:40 -0700 |
| Articles | 5 — 5 participants |
Back to article view | Back to comp.lang.c++
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
| From | Jaydeep Chovatia <chovatia.jaydeep@gmail.com> |
|---|---|
| Date | 2011-06-02 16:02 -0700 |
| Subject | pthread creation fails with EAGAIN |
| Message-ID | <81a1b956-ee96-4443-a8b1-f4862e051c4a@35g2000prp.googlegroups.com> |
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. Thank you, Jaydeep
[toc] | [next] | [standalone]
| From | Ian Collins <ian-news@hotmail.com> |
|---|---|
| Date | 2011-06-03 11:07 +1200 |
| Message-ID | <94qjdpFbjiU2@mid.individual.net> |
| In reply to | #6103 |
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
[toc] | [prev] | [next] | [standalone]
| From | red floyd <redfloyd@gmail.com> |
|---|---|
| Date | 2011-06-02 16:42 -0700 |
| Message-ID | <c0522b52-1db3-4929-9b86-b761132365bc@j23g2000yqc.googlegroups.com> |
| In reply to | #6104 |
On Jun 2, 4:07 pm, Ian Collins <ian-n...@hotmail.com> 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).
[toc] | [prev] | [next] | [standalone]
| From | Pete Becker <pete@versatilecoding.com> |
|---|---|
| Date | 2011-06-02 14:19 -1000 |
| Message-ID | <2011060214190328427-pete@versatilecodingcom> |
| In reply to | #6105 |
On 2011-06-02 13:42:21 -1000, red floyd said: > On Jun 2, 4:07 pm, Ian Collins <ian-n...@hotmail.com> 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, <cerrno>, which defines the same identifiers as POSIX's <errno.h>. -- Pete Roundhouse Consulting, Ltd. (www.versatilecoding.com) Author of "The Standard C++ Library Extensions: a Tutorial and Reference (www.petebecker.com/tr1book)
[toc] | [prev] | [next] | [standalone]
| From | red floyd <no.spam.here@its.invalid> |
|---|---|
| Date | 2011-06-02 23:40 -0700 |
| Message-ID | <is9s3e$v2m$1@dont-email.me> |
| In reply to | #6107 |
On 6/2/2011 5:19 PM, Pete Becker wrote: > On 2011-06-02 13:42:21 -1000, red floyd said: [redacted] >> >> 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, > <cerrno>, which defines the same identifiers as POSIX's <errno.h>. > Picky, picky, picky! :-)
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.c++
csiph-web