74 lines
5.4 KiB
HTML
74 lines
5.4 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="i5/OS thread management" />
|
|
<meta name="abstract" content="The concepts described here pertain to all programming languages." />
|
|
<meta name="description" content="The concepts described here pertain to all programming languages." />
|
|
<meta name="DC.Relation" scheme="URI" content="rzahwovepo.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzahwattco.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzahwstaco.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzahwendco.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzahwcanco.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzahwsusco.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzahwresco.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzahwwatco.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzahwyieco.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../apis/rzah4mst.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="rzahwtwo-twoco" />
|
|
<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>i5/OS thread management</title>
|
|
</head>
|
|
<body id="rzahwtwo-twoco"><a name="rzahwtwo-twoco"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1"><span class="keyword">i5/OS™</span> thread management</h1>
|
|
<div><p>The concepts described here pertain to all programming languages. </p>
|
|
<p>For details about how each language enables a concept, refer to the programmer's
|
|
guide for that specific language. </p>
|
|
</div>
|
|
<div>
|
|
<ul class="ullinks">
|
|
<li class="ulchildlink"><strong><a href="rzahwattco.htm">Thread attributes</a></strong><br />
|
|
Thread attributes are thread characteristics that affect the behavior of the thread. Different attributes are available depending on the programming language and API set that you are using.</li>
|
|
<li class="ulchildlink"><strong><a href="rzahwstaco.htm">Start a thread</a></strong><br />
|
|
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.</li>
|
|
<li class="ulchildlink"><strong><a href="rzahwendco.htm">End a thread</a></strong><br />
|
|
When a thread has completed its processing, it takes an action to end itself and release system resources for use by other threads.</li>
|
|
<li class="ulchildlink"><strong><a href="rzahwcanco.htm">Cancel a thread</a></strong><br />
|
|
The ability to end a thread externally allows you to cancel threads that run long requests before they are completed on their own. The methods available for canceling threads vary according to the threads API set that is used.</li>
|
|
<li class="ulchildlink"><strong><a href="rzahwsusco.htm">Suspend a thread</a></strong><br />
|
|
It is sometimes useful to stop a thread temporarily from processing in your application. When you suspend a thread, the state of the thread, including all the attributes and locks held by the thread, is maintained until that thread is resumed.</li>
|
|
<li class="ulchildlink"><strong><a href="rzahwresco.htm">Resume a thread</a></strong><br />
|
|
<span>If you temporarily stopped a thread
|
|
from processing in your application, you can resume the processing of the
|
|
suspended thread at a later time at the same point that you suspended it.</span></li>
|
|
<li class="ulchildlink"><strong><a href="rzahwwatco.htm">Wait for a thread to end</a></strong><br />
|
|
When using threads, it is important to know when a thread has finished processing. Waiting for a thread to perform an action or an event to happen is called thread synchronization.</li>
|
|
<li class="ulchildlink"><strong><a href="rzahwyieco.htm">Yield the processor to another thread</a></strong><br />
|
|
At times, your application can benefit when a thread yields the processor to another thread in the system.</li>
|
|
</ul>
|
|
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzahwovepo.htm" title="A thread is the path taken by a program while running, the steps performed, and the order in which the steps are performed.">Multithreaded applications</a></div>
|
|
</div>
|
|
<div class="relinfo"><strong>Related information</strong><br />
|
|
<div><a href="../apis/rzah4mst.htm">Pthread APIs</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |