instead of ContinueWith can i write like below ? var task1 = Task.Factory.StartNew( () => { DoWork( 1, 1500 ); DoSomeExtraWork(1,100); } ); var task2 = Task.Factory.StartNew( () => { DoWork( 2, 3000); DoSomeExtraWork( 2 , 1000 ); } ); and so on.... i guess same thing can be achieved.
Asynchrony is not really about multi-threaded execution but making use of thread resources more efficiently and providing more robust user experience.
Well explained.. Thank you
Great tutorial, helped me refresh my knowledge of TPL. Easy to follow.
instead of ContinueWith can i write like below ?
var task1 = Task.Factory.StartNew( () =>
{
DoWork( 1, 1500 );
DoSomeExtraWork(1,100);
} );
var task2 = Task.Factory.StartNew( () =>
{
DoWork( 2, 3000);
DoSomeExtraWork( 2 , 1000 );
} );
and so on....
i guess same thing can be achieved.
Good video
Would be nice if you had a quick pdf overview to accompany this. Very good tutorial though.
Top video
This will use more than 1 cpu core ?
you stole video fom original channel -_-
what hell you talking about ?