taskfactory

TaskFactory.StartNew versus ThreadPool.QueueUserWorkItem

Apparently the TaskFactory.StartNew method in .NET 4.0 is intended as a replacement for ThreadPool.QueueUserWorkItem (according to this post, anyway). My question is simple: does anyone know why? Does TaskFactory.StartNew have better performance? Does it use less memory? Or is it mainly for the additional functionality provided by the T...

c#: lowering priority of Task.Factory.StartNew thread

Hello, If you are reading this (hoping you will be able to help me!), you most probably know that a code like below will start a new thread to do the job. Is there any way I can control the priority of that thread? Task.Factory.StartNew(() => { // everything here will be executed in a new thread. // I want to set the priority o...