[Prev] [Contents] [Next]
Not all jobs can create threads, pthread_create() fail w/EBUSY
Because many parts of the operating system are not yet thread safe, not every AS/400 job is allowed to start threads. The pthread_create() API will fail with the EBUSY failure when the process is not allowed to create threads. See "Running threaded programs" on page 19 for information on how to start a job that can create threads.
For details on how to determine if thread creation is currently allowed for your process, you can see the pthread_getpthreadoption_np() API, option PTHREAD_OPTION_THREAD_CAPABLE_NP, for details on how to determine if thread creation is currently allowed in your process.
See the articles about `Threads Concepts' in the AS/400 Information Center for introductory language and API neutral information about AS/400 threads.
[Prev] [Contents] [Next]
Copyright © 1998, IBM Corporation. All rights
reserved.
Comments? Contact rchthrds@us.ibm.com