source: release-kits/lirk3/bin/ant-installer/web/manual/manual/CoreTasks/nice.html@ 14982

Last change on this file since 14982 was 14982, checked in by oranfry, 16 years ago

initial import of LiRK3

File size: 2.4 KB
Line 
1<!--
2 Licensed to the Apache Software Foundation (ASF) under one or more
3 contributor license agreements. See the NOTICE file distributed with
4 this work for additional information regarding copyright ownership.
5 The ASF licenses this file to You under the Apache License, Version 2.0
6 (the "License"); you may not use this file except in compliance with
7 the License. You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16-->
17<html>
18
19<head>
20<meta http-equiv="Content-Language" content="en-us">
21<link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
22<title>Nice Task</title>
23</head>
24
25<body>
26
27<h2><a name="echo">Nice</a></h2>
28<h3>Description</h3>
29<p>Provide "nice-ness" to the current thread
30 and/or query the current value.</p>
31<h3>Parameters</h3>
32<table border="1" cellpadding="2" cellspacing="0">
33 <tr>
34 <td valign="top"><b>Attribute</b></td>
35 <td valign="top"><b>Description</b></td>
36 <td align="center" valign="top"><b>Required</b></td>
37 </tr>
38 <tr>
39 <td valign="top">currentpriority</td>
40 <td valign="top">the name of the property whose value should be
41 set to the current &quot;nice-ness&quot; level.
42 </td>
43 <td valign="top" align="center">No</td>
44 </tr>
45 <tr>
46 <td valign="top">newpriority</td>
47 <td valign="top">the value to which the
48 &quot;nice-ness&quot; level should be set.
49 Must be a valid Java Thread priority.
50 </td>
51 <td valign="top" align="center">No</td>
52 </tr>
53</table>
54<h3>Examples</h3>
55<pre> &lt;nice newpriority=&quot;10&quot;/&gt;</pre>
56Set the Thread priority to 10 (highest).
57<pre> &lt;nice currentpriority=&quot;priority&quot;/&gt;</pre>
58Store the current Thread priority in the user property "priority".
59<pre>
60 &lt;nice currentpriority=&quot;currentpriority&quot; newpriority=&quot;1&quot;/&gt;
61</pre>
62<p>Set the current Thread priority to 1 (lowest), storing the original
63priority in the user property "currentpriority". This
64can be used to set the priority back to its original value later.
65</p>
66
67
68</body>
69</html>
70
Note: See TracBrowser for help on using the repository browser.