Implicit Task Parallelism
suggest changeprivate static void Main(string[] args)
{
var a = new A();
var b = new B();
//implicit task parallelism
Parallel.Invoke(
() => a.DoSomeWork(),
() => b.DoSomeOtherWork()
);
}
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents