79 lines
5.4 KiB
HTML
79 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="Multithreaded applications" />
|
||
|
<meta name="abstract" content="A thread is the path taken by a program while running, the steps performed, and the order in which the steps are performed." />
|
||
|
<meta name="description" content="A thread is the path taken by a program while running, the steps performed, and the order in which the steps are performed." />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzahwprint.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzahwas4co.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzahwtwoco.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzahwsafco.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzahwmulco.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzahwlanco.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzahwbugco.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzahwpcoco.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzahwrzahwcexcodex.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzahwrelated.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="rzahwove-ovepo" />
|
||
|
<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 applications</title>
|
||
|
</head>
|
||
|
<body id="rzahwove-ovepo"><a name="rzahwove-ovepo"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Multithreaded applications</h1>
|
||
|
<div><p>A <em>thread</em> is the path taken by a program while running, the
|
||
|
steps performed, and the order in which the steps are performed.</p>
|
||
|
<p>The term thread is short for <em>thread of control</em>. A thread runs code
|
||
|
from its starting location in an ordered, predefined sequence for a given
|
||
|
set of inputs. You can use multiple threads to improve application performance
|
||
|
by running different application tasks simultaneously.</p>
|
||
|
</div>
|
||
|
<div>
|
||
|
<ul class="ullinks">
|
||
|
<li class="ulchildlink"><strong><a href="rzahwprint.htm">Printable PDF</a></strong><br />
|
||
|
Use this to view and print a PDF of this information.</li>
|
||
|
<li class="ulchildlink"><strong><a href="rzahwas4co.htm">Threads on i5/OS</a></strong><br />
|
||
|
All programs have at least one thread, referred to as the <em>initial
|
||
|
thread</em>. In a program with multiple threads, each thread runs its code
|
||
|
independently of the other threads in the program.</li>
|
||
|
<li class="ulchildlink"><strong><a href="rzahwtwoco.htm">i5/OS thread management</a></strong><br />
|
||
|
The concepts described here pertain to all programming languages.</li>
|
||
|
<li class="ulchildlink"><strong><a href="rzahwsafco.htm">Thread safety</a></strong><br />
|
||
|
A function is threadsafe if you can start it simultaneously in multiple threads within the same process. A function is threadsafe if and only if all the functions it calls are also threadsafe.</li>
|
||
|
<li class="ulchildlink"><strong><a href="rzahwmulco.htm">Multithreaded programming techniques</a></strong><br />
|
||
|
If you are going to write multithreaded applications or server
|
||
|
applications for <span class="keyword">i5/OS™</span>,
|
||
|
you should be familiar with several techniques.</li>
|
||
|
<li class="ulchildlink"><strong><a href="rzahwlanco.htm">Language access and threads</a></strong><br />
|
||
|
Learn how different languages support threads on <span class="keyword">i5/OS™</span>.
|
||
|
This information can help you evaluate how threads can be implemented in your
|
||
|
own application.</li>
|
||
|
<li class="ulchildlink"><strong><a href="rzahwbugco.htm">Debugging and servicing of multithreaded jobs</a></strong><br />
|
||
|
Use the concepts and techniques that are described here to learn about debugging and servicing multithreaded jobs:</li>
|
||
|
<li class="ulchildlink"><strong><a href="rzahwpcoco.htm">Performance considerations in multithreaded applications</a></strong><br />
|
||
|
There are several performance considerations for multithreaded
|
||
|
jobs on <span class="keyword">i5/OS™</span>.</li>
|
||
|
<li class="ulchildlink"><strong><a href="rzahwrzahwcexcodex.htm">Examples: Threads</a></strong><br />
|
||
|
These examples are used throughout this topic.</li>
|
||
|
<li class="ulchildlink"><strong><a href="rzahwrelated.htm">Related information for multithreaded applications</a></strong><br />
|
||
|
Listed here are the manuals (in PDF format), Web sites, and information center topics that relate to the multithreaded applications topic. You can view or print any of the PDFs.</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|