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

60 lines
3.8 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="concept" />
<meta name="DC.Title" content="Start a thread" />
<meta name="abstract" content="When your application creates a new thread, the system initializes a thread object, control structures, and runtime support. These allow the new thread to use language constructs and system services safely." />
<meta name="description" content="When your application creates a new thread, the system initializes a thread object, control structures, and runtime support. These allow the new thread to use language constructs and system services safely." />
<meta name="DC.Relation" scheme="URI" content="rzahwtwoco.htm" />
<meta name="DC.Relation" scheme="URI" content="rzahwe13rx.htm" />
<meta name="DC.Relation" scheme="URI" content="rzahwex1rx.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="rzahwsta-staco" />
<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>Start a thread</title>
</head>
<body id="rzahwsta-staco"><a name="rzahwsta-staco"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Start a thread</h1>
<div><p>When your application creates a new thread, the system initializes
a thread object, control structures, and runtime support. These allow the
new thread to use language constructs and system services safely.</p>
<p>In addition, you might need to initialize the application data and parameters
the new thread uses before starting the new thread.</p>
<p>As you create each thread, the system assigns it a unique thread identifier.
The thread identifier is an integer value that you can use when you debug,
trace, or perform other administrative activities on the thread. You typically
do not use this thread identifier to directly manipulate the thread.</p>
<p>Most threads API sets also return a thread object or handle that represents
the newly created thread. You can use this thread object to manipulate the
new thread or as a synchronization object to wait for the thread to finish
its processing.</p>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="rzahwe13rx.htm">Example: Start a thread in a Pthread program</a></strong><br />
This example shows how to start and pass parameters to a thread in a Pthread program.</li>
<li class="ulchildlink"><strong><a href="rzahwex1rx.htm">Example: Start a thread using Java</a></strong><br />
This program shows how to start a thread in a program written in Java™.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzahwtwoco.htm" title="The concepts described here pertain to all programming languages.">i5/OS thread management</a></div>
</div>
</div>
</body>
</html>