Wednesday, September 11, 2013

Parallel Computing

Suppose we have an operating system with processor having one core (thread).There are so many processes to execute while starting operating system. So processor will execute all process one by one and hence results in performance and efficient cost. If we have the processor having six or seven core, it would have taken less time to execute all the processes and hence increase in performance and efficiency.
It states that the main task executes in front and other tasks execute parallel in the background to reduce time and performance costing and result in improve overall performance. This creates the concepts of parallel computing.

The .net framework 4.0 introduces Task Parallel Library (TPL) for parallel computing and asynchronous processing in System.Threading and System.Threading.Tasks namespaces.TPL dynamically used the available thread in Thread Pool. The parallelism is the concept of running all the process in parallel.
The advantage of TPL
1.To create parent to child tasks and create complex task hierarchy of dependent tasks.
2.To Cancel or timeout tasks.
3.To Wait for one or all tasks.
4.The Continuation options for failed and succeeded tasks.
5.To catch and handle exceptions.


No comments:

Copyright © Codingnodes,2014.All Rights Reserved.