ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzaks_5.4.0.1/rzakslockedobjstructure.htm

95 lines
5.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="Locked objects" />
<meta name="abstract" content="Jobs and threads use objects to process work." />
<meta name="description" content="Jobs and threads use objects to process work." />
<meta name="DC.Relation" scheme="URI" content="rzaksjobcharacter.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2004-2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2004-2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rzakslockedobjstructure" />
<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>Locked objects</title>
</head>
<body id="rzakslockedobjstructure"><a name="rzakslockedobjstructure"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Locked objects</h1>
<div><p>Jobs and threads use objects to process work.</p>
<p>Because more than one piece of work is processing at a time, a lock is
put on an object so that data integrity is retained. <dfn class="term">Locked objects</dfn> are
system objects used by jobs and threads to process work. After the job or
thread is finished running, the object is unlocked and ready to be used to
process more work. Depending on the lock request type used, locking an object
permits only one user to use an object at a time. For example, if two or more
users tried to change an object at the same time, the changes to the object
by the second user is locked out until the first user finished updating the
object. With the use of lock holders, a user can see what currently has a
lock or is currently waiting on a lock for an object.</p>
<p><dfn class="term">Scope</dfn> specifies whether the lock is associated with a job,
a thread, or a lock space. Scope also defines how long the lock will be available
and what lock request type and conflict rules the object has on it.</p>
<p><dfn class="term">Lock request types</dfn> are different levels of access that a job,
thread or lock space can have to an object that is locked. For example, a
lock exclusive, no read lock type is used if an object is being changed or
deleted on the system. This lock request type does not allow anyone to use
the object, nor does it allow anyone to read the object.</p>
<p>The different lock request types are:</p>
<dl><dt class="dlterm">Exclusive - No read</dt>
<dd>The object is reserved for exclusive use. However, if the object is locked
by any lock request type, you cannot obtain exclusive use of the object. This
lock state is appropriate when a user does not want any other user to have
access to the object until the function being performed is complete.</dd>
</dl>
<dl><dt class="dlterm">Exclusive-Read</dt>
<dd>The object can only be shared with the shared-read lock request type.
This lock is appropriate when a user wants to prevent other users from performing
any operation other than a read.</dd>
</dl>
<dl><dt class="dlterm">Shared-Update</dt>
<dd>The object can be shared with either the shared-read or shared-update
lock request type. That is, another user can request either a shared-read
lock state or a shared-update lock state for the same object. This lock state
is appropriate when a user intends to change an object but wants to allow
other users to read or change the same object.</dd>
</dl>
<dl><dt class="dlterm">Shared-No update</dt>
<dd>The object can be shared with only share - no update, and shared-read
lock request types. This lock state is appropriate when a user does not intend
to change an object but wants to ensure that no other user changes the object.</dd>
</dl>
<dl><dt class="dlterm">Shared-Read</dt>
<dd>The object can be shared with all lock requests other than exclusive -
no read. That is, another user can request an exclusive-read, shared-update,
shared-read, or shared-no update lock state.</dd>
</dl>
<p>The <dfn class="term">lock status</dfn> tells the state of the lock request. The different
lock statuses are:</p>
<ul class="simple"><li><strong>Held</strong>: The lock request has been fulfilled and the job, thread
or lock space is holding the lock.</li>
<li><strong>Waiting</strong>: The job or thread is waiting to obtain the lock.</li>
<li><strong>Requested</strong>: The job or thread has requested the lock.</li>
</ul>
<p><dfn class="term">Lock holders</dfn> are the jobs, threads and lock spaces that are
currently holding a lock or are waiting for a lock on a specific locked object.</p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaksjobcharacter.htm" title="Work management provides a way for you to control the work done on your system through a job's attributes. However, before you can control the various aspects of a job, you need to understand the different characteristics of a job.">Job characteristics</a></div>
</div>
</div>
</body>
</html>