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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 id="echo">Nice</h2>
  23. <h3>Description</h3>
  24. <p>Provide &quot;nice-ness&quot; to the current thread and/or query the current value.</p>
  25. <h3>Parameters</h3>
  26. <table class="attr">
  27. <tr>
  28. <th>Attribute</th>
  29. <th>Description</th>
  30. <th>Required</th>
  31. </tr>
  32. <tr>
  33. <td>currentpriority</td>
  34. <td>name of the property whose value should be set to the current &quot;nice-ness&quot;
  35. level.</td>
  36. <td>No</td>
  37. </tr>
  38. <tr>
  39. <td>newpriority</td>
  40. <td>value to which the &quot;nice-ness&quot; level should be set. Must be a valid Java Thread
  41. priority.</td>
  42. <td>No</td>
  43. </tr>
  44. </table>
  45. <h3>Examples</h3>
  46. <pre>&lt;nice newpriority=&quot;10&quot;/&gt;</pre>
  47. <p>Set the Thread priority to 10 (highest).</p>
  48. <pre>&lt;nice currentpriority=&quot;priority&quot;/&gt;</pre>
  49. <p>Store the current Thread priority in the user property <code>priority</code>.</p>
  50. <pre>&lt;nice currentpriority=&quot;currentpriority&quot; newpriority=&quot;1&quot;/&gt;</pre>
  51. <p>Set the current Thread priority to 1 (lowest), storing the original priority in the user
  52. property <code>currentpriority</code>. This can be used to set the priority back to its original
  53. value later.</p>
  54. </body>
  55. </html>