70 lines
5.0 KiB
HTML
70 lines
5.0 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="Multithreaded program startup commands" />
|
||
|
<meta name="abstract" content="To call a multithreaded Integrated Language Environment (ILE) program, the job in which the program is called must be capable of supporting multiple threads (multithread-capable). Multithreaded Java programs can be called in most jobs (some system jobs restrict the types of programs that can be called)." />
|
||
|
<meta name="description" content="To call a multithreaded Integrated Language Environment (ILE) program, the job in which the program is called must be capable of supporting multiple threads (multithread-capable). Multithreaded Java programs can be called in most jobs (some system jobs restrict the types of programs that can be called)." />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzahwas4co.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="rzahwead-eadco" />
|
||
|
<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>Multithreaded program startup commands</title>
|
||
|
</head>
|
||
|
<body id="rzahwead-eadco"><a name="rzahwead-eadco"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Multithreaded program startup commands</h1>
|
||
|
<div><p>To call a multithreaded Integrated Language
|
||
|
Environment<sup>®</sup> (ILE) program, the job in which the program is called must
|
||
|
be capable of supporting multiple threads (multithread-capable). Multithreaded Java™ programs
|
||
|
can be called in most jobs (some system jobs restrict the types of programs
|
||
|
that can be called).</p>
|
||
|
<div class="section"><p>In the <span class="keyword">i5/OS™</span> kernel
|
||
|
threads support, only a subset of the supported job types can create threads.
|
||
|
Interactive and communication jobs do no provide multithread-capable support.</p>
|
||
|
</div>
|
||
|
<div class="section"><p>The parameter <span class="parmname">Allow Multithread (ALWMLTTHD)</span>,
|
||
|
which is located in the <span class="cmdname">Create Job Description (CRTJOBD)</span> and <span class="cmdname">Change
|
||
|
Job Description (CHGJOBD)</span> commands, controls whether the job supports
|
||
|
multiple threads. <span class="keyword">i5/OS</span> examines
|
||
|
all job types except communications jobs and interactive jobs for the <span class="parmname">ALWMLTTHD</span> parameter.
|
||
|
The <span class="cmdname">Add Prestart Job Entry (ADDPJE)</span> and <span class="cmdname">Change
|
||
|
Prestart Job Entry (CHGPJE)</span> subsystem description job entry commands
|
||
|
use the <span class="parmname">ALWMLTTHD</span> setting to control whether jobs started
|
||
|
through the entry are capable of supporting multiple threads.</p>
|
||
|
</div>
|
||
|
<div class="section"><p>The <span class="apiname">spawn()</span> API, Spawn Process,
|
||
|
supports a new flag field in the inheritance structure that controls whether
|
||
|
the child process can support multiple threads. This flag field, SPAWN_SETTHREAD_NP,
|
||
|
is a non-standard, <span class="keyword">i5/OS</span> platform-specific
|
||
|
extension to the inheritance structure. The <span class="apiname">spawn()</span> API
|
||
|
is the only programming method that can start a batch immediate or prestart
|
||
|
job that is capable of supporting multiple threads. You can write a <span class="cmdname">SPAWN</span> command,
|
||
|
similar to the CALL command, to simplify calling multithreaded programs.
|
||
|
An example <span class="cmdname">SPAWN</span> command is available for your use and
|
||
|
modification as part of <span class="keyword">i5/OS</span> option
|
||
|
7, the <span class="keyword">i5/OS</span> Example Tools
|
||
|
Library, QUSRTOOLS.</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzahwas4co.htm" title="All programs have at least one thread, referred to as the initial thread. In a program with multiple threads, each thread runs its code independently of the other threads in the program.">Threads on i5/OS</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|