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

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