Murad BASDAG

Murad BASDAG

  • NA
  • 19
  • 0

Are tasks start to work respectively ?

May 29 2012 5:08 AM
Hello all,

I'm new on parallel programmin in .NET 4.0. I want to use tasks in my application as below


lock (lckObj)
msg = Messages.Dequeue();



var tsk = Task.Factory.StartNew( () => ProcessMessage( msg ) );


These codes are working in a while loop. Everything is working well there is no problem but there is one point which i need to be sure. As you can guess it will try to start tasks respectively and working respectively is the most importent thing in these part of the codes. If you have any knowledge are the tasks work respectively as i started in my code or not please share your ideas with me.


Because if they do not start to work respectively i should give up to use parrallel programming in this portion of my application.


Thank you for your interesting about my post.