Is there any difference between the below code snippets. If so, what?
myList.AsParallel().ForAll(i => { /*DO SOMETHING*/ });
and
Parallel.ForEach(mylist, i => { /*DO SOMETHING*/ });
Will the main thread wait for all the child threads to complete? In a MVC application, if I'm doing parallel processing in my controller action, what happens to the child threads after the main thread completes. Will they be aborted or will they be completed even after the main thread is completed?