Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>According to <a href="http://msdn.microsoft.com/en-us/library/0ka9477y.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/0ka9477y.aspx</a>, it won't work if you are targeting 2.0, it alludes to there being some differences in 3.5 but doesn't specifically mention priority:</p> <blockquote> <p><strong>When Not to Use Thread Pool Threads</strong></p> <p>There are several scenarios in which it is appropriate to create and manage your own threads instead of using thread pool threads:</p> <ul> <li><p>You require a foreground thread.</p></li> <li><p><strong><em>You require a thread to have a particular priority.</em></strong></p></li> <li><p>You have tasks that cause the thread to block for long periods of time. The thread pool has a maximum number of threads, so a large number of blocked thread pool threads might prevent tasks from starting.</p></li> <li><p>You need to place threads into a single-threaded apartment. All ThreadPool threads are in the multithreaded apartment.</p></li> <li><p>You need to have a stable identity associated with the thread, or to dedicate a thread to a task.</p></li> </ul> </blockquote> <p>You'll likely need to come up with your own implementation, and handle creation of Threads directly. </p> <p><em>Question:</em> What are you trying to achieve do you have a set of tasks to be processed and you want high priority tasks to happen first, and lower ones to happen later; or do you actually want Threads of differing priority? </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload