ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzahw_5.4.0.1/rzahwfaico.htm

61 lines
3.7 KiB
HTML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="reference" />
<meta name="DC.Title" content="Thread creation not allowed failure" />
<meta name="abstract" content="i5/OS does not allow every process on the system to create threads at every time while running." />
<meta name="description" content="i5/OS does not allow every process on the system to create threads at every time while running." />
<meta name="DC.Relation" scheme="URI" content="rzahwcomco.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rzahwfai-faico" />
<meta name="DC.Language" content="en-us" />
<!-- 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. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Thread creation not allowed failure</title>
</head>
<body id="rzahwfai-faico"><a name="rzahwfai-faico"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Thread creation not allowed failure</h1>
<div><p><span class="keyword">i5/OS™</span> does not
allow every process on the system to create threads at every time while running.</p>
<div class="section"><p>You can specify special parameters when you create a job. These
parameters can indicate that the job should allow multiple threads.</p>
</div>
<div class="section"><p>For example, the <span class="apiname">spawn()</span> application
programming interface (API) has a multithreaded flag that can be specified
in the inheritance parameter. You can use other ways to submit <span class="keyword">i5/OS</span> jobs
that allow you to specify that the new job should be allowed to create threads.
Some job types allow the use of a job description specifying that the job
that is started using the job description should be allowed to start threads.
To do this, use the <span class="parmname">Allow Multithread (ALWMLTTHD)</span> parameter
on the <span class="cmdname">Create Job Description (CRTJOBD)</span> or <span class="cmdname">Change
Job Description (CHGJOBD)</span> commands.</p>
</div>
<div class="section"><p>If you attempt to create a thread in a job that is not capable
of starting threads, thread creation fails. See your API or language specific
documentation for details on how the failure is manifested.</p>
</div>
<div class="section"><p>The same failure recurs if your application is running the destructors
for C++ static objects or C/C++ program termination routines. Application
code cannot create threads when the job is ending.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzahwcomco.htm" title="Several programming errors often occur when writing multithreaded applications.">Common multithreaded programming errors</a></div>
</div>
</div>
</body>
</html>