I am just learning about the new Threading and Parallel libraries in .Net 4
In the past I would create a new Thread like so (as an example):
DataInThread = new Thread(new ThreadStart(ThreadProcedure));
DataInThread.IsBackground = true;
DataInThread.Start();
Now I can do:
Task t = Task.Factory.StartNew(() =>
{
ThreadProcedure();
});
What is the difference if any?
Thanks