source: other-projects/trunk/realistic-books/packages/AntInstaller/web/manual1.6.2/manual/CoreTasks/nice.html@ 19253

Last change on this file since 19253 was 19253, checked in by davidb, 15 years ago

Establishing a source code repository for Veronica's Realistic Book's software

File size: 1.7 KB
Line 
1<html>
2
3<head>
4<meta http-equiv="Content-Language" content="en-us">
5<title>Nice Task</title>
6<link rel="stylesheet" type="text/css" href="../stylesheets/antmanual.css">
7</head>
8
9<body>
10
11<h2><a name="echo">Nice</a></h2>
12<h3>Description</h3>
13<p>Provide "nice-ness" to the current thread
14 and/or query the current value.</p>
15<h3>Parameters</h3>
16<table border="1" cellpadding="2" cellspacing="0">
17 <tr>
18 <td valign="top"><b>Attribute</b></td>
19 <td valign="top"><b>Description</b></td>
20 <td align="center" valign="top"><b>Required</b></td>
21 </tr>
22 <tr>
23 <td valign="top">currentpriority</td>
24 <td valign="top">the name of the property whose value should be
25 set to the current &quot;nice-ness&quot; level.
26 </td>
27 <td valign="top" align="center">No</td>
28 </tr>
29 <tr>
30 <td valign="top">newpriority</td>
31 <td valign="top">the value to which the
32 &quot;nice-ness&quot; level should be set.
33 Must be a valid Java Thread priority.
34 </td>
35 <td valign="top" align="center">No</td>
36 </tr>
37</table>
38<h3>Examples</h3>
39<pre> &lt;nice newpriority=&quot;10&quot; /&gt;</pre>
40Set the Thread priority to 10.
41<pre> &lt;nice currentpriority=&quot;priority&quot; /&gt;</pre>
42Store the current Thread priority in the user property "priority".
43<pre>
44 &lt;nice currentpriority=&quot;currentpriority&quot; newpriority=&quot;1&quot; /&gt;
45</pre>
46<p>Set the current Thread priority to 1, storing the original
47priority in the user property "currentpriority". This
48can be used to set the priority back to its original value later.
49</p>
50<hr>
51
52<p align="center">Copyright &copy; 2004 The Apache Software Foundation. All rights
53Reserved.</p>
54
55</body>
56</html>
57
Note: See TracBrowser for help on using the repository browser.