title: Java Executors: how can I set task priority?
body: <p>Is there a possibility to set priority to tasks which are executed by Executors? I've found some statements in JCIP about it's possible but I cannot find any example and I cannot find anything related in docs.</p>
  
  <p>From JCIP:</p>
  
  <blockquote>
    <p>An execution policy specifies the
    "what, where, when, and how" of task
    execution, including:</p>
    
    <ul>
    <li>...</li>
    <li>In what order should tasks be executed (FIFO, LIFO, <strong>priority order</strong>)?</li>
    <li>...</li>
    </ul>
  </blockquote>
  
  <p><strong>UPD</strong>: I realized that I asked not exactly what I wanted to ask. What I really wanted is:</p>
  
  <p>How to use/emulate setting threads priority (i.e. what was <code>thread.setPriority()</code>) with executors framework? </p>