TPL

TPL makes developers more productive by creating parallel and concurrent applications. These are available as public types in the System.Threading and System.Threading.Tasks namespaces. TPL allows us to maximize code performance while focusing on program work. TPL is based on tasks, which represent a thread or thread pool. When one or more tasks are run concurrently, this is known as task parallelism. A task has a couple of benefits: being scalable and efficient, and having more programmatic control than threads.

Because TPL handles the partitioning of the work, scheduling, cancellation, state, and other low-level details, it can scale the degree of concurrency dynamically and use the system resources or processors that are available.

It is important to be aware of when to apply parallel programming, otherwise the overhead of parallelization decreases the speed of code execution. A basic understanding of threading concepts such as locks and deadlocks is important so that we can use TPL effectively.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.148.144.228