pthread creation fails with EAGAIN

  • Thread starter Jaydeep Chovatia
  • Start date
J

Jaydeep Chovatia

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
 
I

Ian Collins

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.
 
R

red floyd

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).
 
R

red floyd

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! :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,141
Messages
2,570,817
Members
47,367
Latest member
mahdiharooniir

Latest Threads

Top