Implicit Task Parallelism C# with Example



Implicit Task Parallelism C# with Example

private static void Main(string[] args) 
{ 
var a = new A(); 
var b = new B(); 
//implicit task parallelism 
Parallel.Invoke( 
() => a.DoSomeWork(), 
 

() => b.DoSomeOtherWork() 
); 
} 

0 Comment's

Comment Form

Submit Comment