Not all jobs can create threads; pthread_create() fails with EBUSY

Because many parts of the operating system are not yet thread safe, not every job is allowed to start threads. The pthread_create() API fails with the EBUSY error when the process is not allowed to create threads. See Running threaded programs for information about how to start a job that can create threads.

For details about how to determine whether thread creation is currently allowed for your process, you can see the pthread_getpthreadoption_np() API, option PTHREAD_OPTION_THREAD_CAPABLE_NP.

See Multithreaded applications for an introduction to threads and general API information about iSeries threads.


Pthread APIs | APIs by category