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 1.6 KiB

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