ibm-information-center/dist/eclipse/plugins/i5OS.ic.apis_5.4.0.1/mutexes.htm

61 lines
2.5 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Copyright" content="Copyright (c) 2006 by IBM Corporation">
<title>Mutexes can be named to aid in application debug</title>
<!-- Begin Header Records ========================================== -->
<!-- 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. -->
<!-- Change History: -->
<!-- YYMMDD USERID Change description -->
<!-- NETMG2 SCRIPT A converted by B2H R4.1 (346) (CMS) by HOLTJM at -->
<!-- RCHVMW2 on 29 Jan 1999 at 10:01:37 -->
<!--File Edited November 2001 -->
<!-- End Header Records -->
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</head>
<body>
<!--End Header Records -->
<!-- Java sync-link -->
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript">
</script>
<h2>Mutexes can be named to aid in application debug</h2>
<p>The i5/OS threads support of mutexes allows the application to name
mutexes. Named mutexes can be used to aid in problem determination. The
performance and behavioral characteristics of named mutexes are identicle to
normal mutexes.</p>
<p>When an application is using mutexes and has deadlocked, you may be able to
determine which mutexes are being used by the application more easily if the
mutexes being used are named.</p>
<p>You can use the <strong>DSPJOB</strong> CL command to help debug the
application. From <strong>DSPJOB</strong>, choose option <strong>19 - Display
mutexes, if active</strong> or option <strong>20 - Display threads, if
active</strong> to view the mutexes and threads being used by the
application.</p>
<p>See <a href="users_56.htm">pthread_mutexattr_setname_np()--Set Name in Mutex
Attributes Object</a> and <a href="users_51.htm">
pthread_mutexattr_getname_np()--Get Name from Mutex Attributes Object</a> if
you would like to use named mutexes in your application.</p>
<hr>
<center>
<table cellpadding="2" cellspacing="2">
<tr align="center">
<td valign="middle" align="center">
<a href="rzah4mst.htm">Pthread APIs</a> |
<a href="aplist.htm">APIs by category</a></td>
</tr>
</table>
</center>
</body>
</html>