60 lines
2.5 KiB
HTML
60 lines
2.5 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>Spawn API provides more POSIX-like process model</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>Spawn API provides more POSIX-like process model</h2>
|
|
|
|
<p>The iSeries uses a call/return mechanism when your application calls
|
|
programs. A new process is not started when you call a program, instead the
|
|
program runs and returns to its caller. You can use activation groups to
|
|
separate or partition the program resources from the caller.</p>
|
|
|
|
<p>For the more POSIX-like behavior of running each program in a separate
|
|
process (and thus taking advantage of thread safety, encapsulation, and
|
|
protection that the new process may give you), use the <strong>spawn</strong>()
|
|
API to start the program.</p>
|
|
|
|
<p>You also can use the capability provided in <strong>spawn</strong>() to
|
|
allow the child process to start multiple threads. See the
|
|
<a href="spawn.htm">spawn()</a> API documentation for a description of the
|
|
<strong>SPAWN_SETTHREAD_NP</strong> flag in the inheritance structure.</p>
|
|
|
|
<p>A CL command for using <strong>SPAWN</strong> is also available from the
|
|
<strong>QUSRTOOL</strong> library. See <a href="concep32.htm#286283">SPAWN CL
|
|
command, QUSRTOOL example</a> for more information about the <strong>
|
|
SPAWN</strong> CL command.</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>
|
|
|