56 lines
2.3 KiB
HTML
56 lines
2.3 KiB
HTML
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||
|
<meta name="Copyright" content="Copyright (c) 2006 by IBM Corporation">
|
||
|
<title>Not all jobs can create threads; pthread_create() fails with
|
||
|
EBUSY</title>
|
||
|
<!-- Begin Header Records ========================================== -->
|
||
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
||
|
<!-- US Government Users Restricted Rights -->
|
||
|
<!-- Use, duplication or disclosure restricted by -->
|
||
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
||
|
<!-- Change History: -->
|
||
|
<!-- YYMMDD USERID Change description -->
|
||
|
<!-- NETMG2 SCRIPT A converted by B2H R4.1 (346) (CMS) by HOLTJM at -->
|
||
|
<!-- RCHVMW2 on 29 Jan 1999 at 10:01:37 -->
|
||
|
<!--File Edited November 2001 -->
|
||
|
<!--End Header Records -->
|
||
|
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
||
|
</head>
|
||
|
<body>
|
||
|
<!-- Java sync-link -->
|
||
|
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript">
|
||
|
</script>
|
||
|
|
||
|
<h2>Not all jobs can create threads; pthread_create() fails with EBUSY</h2>
|
||
|
|
||
|
<p>Because many parts of the operating system are not yet thread safe, not
|
||
|
every job is allowed to start threads. The <strong>
|
||
|
pthread_create()</strong> API fails with the <strong>EBUSY</strong> error when
|
||
|
the process is not allowed to create threads. See <a href="293735.htm">Running
|
||
|
threaded programs</a> for information about how to start a job that can create
|
||
|
threads.</p>
|
||
|
|
||
|
<p>For details about how to determine whether thread creation is currently
|
||
|
allowed for your process, you can see the <strong>
|
||
|
pthread_getpthreadoption_np()</strong> API, option <strong>
|
||
|
PTHREAD_OPTION_THREAD_CAPABLE_NP</strong>.</p>
|
||
|
|
||
|
<p>See <a href="../rzahw/rzahwovepo.htm">Multithreaded applications</a>
|
||
|
for an introduction to threads and general API information about iSeries
|
||
|
threads.</p>
|
||
|
|
||
|
<hr>
|
||
|
<center>
|
||
|
<table cellpadding="2" cellspacing="2">
|
||
|
<tr align="center">
|
||
|
<td valign="middle" align="center">
|
||
|
<a href="rzah4mst.htm">Pthread APIs</a> |
|
||
|
<a href="aplist.htm">APIs by category</a></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</center>
|
||
|
</body>
|
||
|
</html>
|