Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Hands-On Parallel Programming with C# 8 and .NET Core 3
Hands-On Parallel Programming with C# 8 and .NET Core 3

Hands-On Parallel Programming with C# 8 and .NET Core 3: Build solid enterprise software using task parallelism and multithreading

eBook
€20.98 €29.99
Paperback
€36.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
Table of content icon View table of contents Preview book icon Preview Book

Hands-On Parallel Programming with C# 8 and .NET Core 3

Section 1: Fundamentals of Threading, Multitasking, and Asynchrony

In this section, you will become familiar with the concepts of threading, multitasking, and asynchronous programming.

This section comprises the following chapters:

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Write efficient, fine-grained, and scalable parallel code with C# and .NET Core
  • Experience how parallel programming works by building a powerful application
  • Learn the fundamentals of multithreading by working with IIS and Kestrel

Description

In today’s world, every CPU has a multi-core processor. However, unless your application has implemented parallel programming, it will fail to utilize the hardware’s full processing capacity. This book will show you how to write modern software on the optimized and high-performing .NET Core 3 framework using C# 8. Hands-On Parallel Programming with C# 8 and .NET Core 3 covers how to build multithreaded, concurrent, and optimized applications that harness the power of multi-core processors. Once you’ve understood the fundamentals of threading and concurrency, you’ll gain insights into the data structure in .NET Core that supports parallelism. The book will then help you perform asynchronous programming in C# and diagnose and debug parallel code effectively. You’ll also get to grips with the new Kestrel server and understand the difference between the IIS and Kestrel operating models. Finally, you’ll learn best practices such as test-driven development, and run unit tests on your parallel code. By the end of the book, you’ll have developed a deep understanding of the core concepts of concurrency and asynchrony to create responsive applications that are not CPU-intensive.

Who is this book for?

If you want to learn how task parallelism is used to build robust and scalable enterprise architecture, this book is for you. Whether you are a beginner to parallelism in C# or an experienced architect, you’ll find this book useful to gain insights into the different threading models supported in .NET Standard and .NET Core. Prior knowledge of C# is required to understand the concepts covered in this book.

What you will learn

  • Analyze and break down a problem statement for parallelism
  • Explore the APM and EAP patterns and how to move legacy code to Task
  • Apply reduction techniques to get aggregated results
  • Create PLINQ queries and study the factors that impact their performance
  • Solve concurrency problems caused by producer-consumer race conditions
  • Discover the synchronization primitives available in .NET Core
  • Understand how the threading model works with IIS and Kestrel
  • Find out how you can make the most of server resources

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Dec 20, 2019
Length: 346 pages
Edition : 1st
Language : English
ISBN-13 : 9781789133615
Category :
Languages :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning

Product Details

Publication date : Dec 20, 2019
Length: 346 pages
Edition : 1st
Language : English
ISBN-13 : 9781789133615
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 132.97
C# 8.0 and .NET Core 3.0 – Modern Cross-Platform Development
€65.99
Hands-On Parallel Programming with C# 8 and .NET Core 3
€36.99
Hands-On Design Patterns with C# and .NET Core
€29.99
Total 132.97 Stars icon

Table of Contents

21 Chapters
Section 1: Fundamentals of Threading, Multitasking, and Asynchrony Chevron down icon Chevron up icon
Introduction to Parallel Programming Chevron down icon Chevron up icon
Task Parallelism Chevron down icon Chevron up icon
Implementing Data Parallelism Chevron down icon Chevron up icon
Using PLINQ Chevron down icon Chevron up icon
Section 2: Data Structures that Support Parallelism in .NET Core Chevron down icon Chevron up icon
Synchronization Primitives Chevron down icon Chevron up icon
Using Concurrent Collections Chevron down icon Chevron up icon
Improving Performance with Lazy Initialization Chevron down icon Chevron up icon
Section 3: Asynchronous Programming Using C# Chevron down icon Chevron up icon
Introduction to Asynchronous Programming Chevron down icon Chevron up icon
Async, Await, and Task-Based Asynchronous Programming Basics Chevron down icon Chevron up icon
Section 4: Debugging, Diagnostics, and Unit Testing for Async Code Chevron down icon Chevron up icon
Debugging Tasks Using Visual Studio Chevron down icon Chevron up icon
Writing Unit Test Cases for Parallel and Asynchronous Code Chevron down icon Chevron up icon
Section 5: Parallel Programming Feature Additions to .NET Core Chevron down icon Chevron up icon
IIS and Kestrel in ASP.NET Core Chevron down icon Chevron up icon
Patterns in Parallel Programming Chevron down icon Chevron up icon
Distributed Memory Management Chevron down icon Chevron up icon
Assessments Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Most Recent
Rating distribution
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.8
(6 Ratings)
5 star 66.7%
4 star 0%
3 star 0%
2 star 16.7%
1 star 16.7%
Filter icon Filter
Most Recent

Filter reviews by




Paul Mar 10, 2021
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1
The book does nothing to enhance the users understanding of parallel programming. It simply lists methods under various headings. The book does not give any suggestions on when to use any technique. The best think it did for me was give me lists of methods I could look up online!It was definitely not worth the price I paid and I ended up buying another book, "Concurrency in C# Cookbook" which let me achieve what I was hoping to achieve from this book.
Amazon Verified review Amazon
sarvjeet verma Feb 06, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This is a good book for understanding overall parallel programming concepts used in .net from beginning of .net to latest version and covers every aspect of parallelism.
Amazon Verified review Amazon
Sunny Jan 11, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Awesome!!!Best book written by Shakti TanwarThis is helping me a lot.Literally easy to understand the basic and advanced stuff of parallelism and multithreading in C#.
Amazon Verified review Amazon
Amandeep Modanwal Nov 04, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I started using the TPL (task parallel library) at work so I wanted to pick up a reference book to see how to do it right.This book did an excellent job of detailing how to use the technology, with relevant and detailed examples of how to use the various classes and methods.
Amazon Verified review Amazon
yy Jun 19, 2020
Full star icon Full star icon Empty star icon Empty star icon Empty star icon 2
Poorly written. Concepts like task and thread are not explained well at all. Even the first chapter reads like Microsoft online manual, only with less details. Into the second chapter and decided not going to waist my time any more. If you buy it, make sure you start reading right way, so you still have a chance to return it. I missed the return deadline, and this book is quite pricey : /
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.