You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

nice.html 2.4 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. -->
  15. <html>
  16. <head>
  17. <meta http-equiv="Content-Language" content="en-us">
  18. <link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
  19. <title>Nice Task</title>
  20. </head>
  21. <body>
  22. <h2><a name="echo">Nice</a></h2>
  23. <h3>Description</h3>
  24. <p>Provide "nice-ness" to the current thread
  25. and/or query the current value.</p>
  26. <h3>Parameters</h3>
  27. <table border="1" cellpadding="2" cellspacing="0">
  28. <tr>
  29. <td valign="top"><b>Attribute</b></td>
  30. <td valign="top"><b>Description</b></td>
  31. <td align="center" valign="top"><b>Required</b></td>
  32. </tr>
  33. <tr>
  34. <td valign="top">currentpriority</td>
  35. <td valign="top">the name of the property whose value should be
  36. set to the current &quot;nice-ness&quot; level.
  37. </td>
  38. <td valign="top" align="center">No</td>
  39. </tr>
  40. <tr>
  41. <td valign="top">newpriority</td>
  42. <td valign="top">the value to which the
  43. &quot;nice-ness&quot; level should be set.
  44. Must be a valid Java Thread priority.
  45. </td>
  46. <td valign="top" align="center">No</td>
  47. </tr>
  48. </table>
  49. <h3>Examples</h3>
  50. <pre> &lt;nice newpriority=&quot;10&quot;/&gt;</pre>
  51. Set the Thread priority to 10 (highest).
  52. <pre> &lt;nice currentpriority=&quot;priority&quot;/&gt;</pre>
  53. Store the current Thread priority in the user property "priority".
  54. <pre>
  55. &lt;nice currentpriority=&quot;currentpriority&quot; newpriority=&quot;1&quot;/&gt;
  56. </pre>
  57. <p>Set the current Thread priority to 1 (lowest), storing the original
  58. priority in the user property "currentpriority". This
  59. can be used to set the priority back to its original value later.
  60. </p>
  61. </body>
  62. </html>