Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The <a href="http://msdn.microsoft.com/en-us/library/system.windows.threading.dispatcher.aspx" rel="nofollow"><code>Dispatcher</code></a> is an object that models the message loop of WPF applications. If that doesn't mean anything to you then forget you ever heard of it.</p> <p><a href="http://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker.aspx" rel="nofollow"><code>BackgroundWorker</code></a> is a convenience class over a thread that is part of the <a href="http://msdn.microsoft.com/en-us/library/0ka9477y.aspx" rel="nofollow">managed thread pool</a>. It exists to provide some commonly requested functionality over manually assigning work to the thread pool with <a href="http://msdn.microsoft.com/en-us/library/b2b9a8h2.aspx" rel="nofollow"><code>ThreadPool.QueueUserWorkItem</code></a>.</p> <p>The <a href="http://msdn.microsoft.com/en-us/library/system.threading.thread.aspx" rel="nofollow"><code>Thread</code></a> class is very much like using the managed thread pool, with the difference being that you are in absolute control of the thread's lifetime (on the flip side, it's worse than using the thread pool if you intend to launch lots of short tasks).</p> <p>The <a href="http://msdn.microsoft.com/en-us/library/dd460717.aspx" rel="nofollow">Task Parallel Library</a> (TPL) (i.e. using <code>Parallel.ForEach</code>) would indeed be the best approach, since it not only takes care of assigning work units to a number of threads (from the managed thread pool) but it will also automatically divide the work units among those threads.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

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