72 lines
4.1 KiB
HTML
72 lines
4.1 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="Jobs and job resources" />
|
|
<meta name="abstract" content="A job is a container for storage and other resources. A job cannot run by itself." />
|
|
<meta name="description" content="A job is a container for storage and other resources. A job cannot run by itself." />
|
|
<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="rzahwour-ourco" />
|
|
<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>Jobs and job resources</title>
|
|
</head>
|
|
<body id="rzahwour-ourco"><a name="rzahwour-ourco"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Jobs and job resources</h1>
|
|
<div><p>A <em>job</em> is a container for storage and other resources. A
|
|
job cannot run by itself. </p>
|
|
<p>Every job has two basic kinds of storage associated with it. </p>
|
|
<dl><dt class="dlterm">Data:</dt>
|
|
<dd>Data is where all of the program variables are stored. It is broken down
|
|
into storage for global and static variables (static), storage for dynamically
|
|
allocated storage (heap), and storage for variables that are local to the
|
|
function (automatic). The storage for program variables is allocated from
|
|
the activation group into which the program was activated. Static and heap
|
|
storage are accessible to all threads that are running in the activation group.
|
|
The automatic storage and local program variables are local to the thread. </dd>
|
|
<dt class="dlterm">Stack:</dt>
|
|
<dd>The stack contains data about the program or procedure call flow in a
|
|
thread. The stack, along with automatic storage, is allocated for each thread
|
|
created. While in use by a thread, the stack and automatic storage are considered
|
|
to be thread resources. When the thread ends, these resources return to the
|
|
process for subsequent use by another thread. </dd>
|
|
</dl>
|
|
<p>Job resources are resources that are accessible by all threads within the
|
|
job. These resources are as follows:</p>
|
|
<ul><li>Coded character set identifier (CCSID)</li>
|
|
<li>Locales</li>
|
|
<li>Environment variables</li>
|
|
<li>File descriptors</li>
|
|
<li>Files that are opened with a job scope</li>
|
|
<li>Signal action vector</li>
|
|
<li>Signal timers</li>
|
|
<li>The current working directory</li>
|
|
</ul>
|
|
<p>All threads running in an activation group can share activation group resources,
|
|
such as static and heap storage. When a thread changes a job resource, the
|
|
new value is immediately visible to all threads. For example, changing the
|
|
signal handling action in one thread effectively changes the signal handling
|
|
action in all threads.</p>
|
|
</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> |