Multithreading and Parallel Programming in C# (The Course)
$19.00
Minimum price
$19.00
Suggested price

This Course is part of the following Tracks:

Course Info

This course includes 1 attempt.

For the last two decades, computers became faster by increasing the number of CPU cores. However, the fact of having more cores itself doesn’t make a computer drastically faster if those cores are not used by software properly. We, as software developers, should know how to write asynchronous and parallel executing code to make our applications faster and more responsive.

This course is all about developing more responsive and fast programs. Multithreading and Parallel Computing are topics for those who already have some experience in programming, otherwise, you may face difficulties with understanding the content.

Anyway, this course covers:

  • Theoretical foundations of asynchronous programming: main concepts, processes, threads and so on
  • Low-level Thread API, APM, and EAP
  • Task Parallel Library (TPL) including starting tasks, canceling tasks, chaining tasks, waiting for tasks, IO-based tasks, exceptions handling and other
  • Async and Await feature of C#
  • Synchronization including atomicity, Interlocked, Monitor (lock), ReaderWriterLockSlim, Semaphore, SynchronizationContext, and Mutex
  • Signaling constructs such as AutoResetEvent and ManualResetEventSlim, CountdownEvent and Barrier
  • Spinning including SpinWait, SpinLock and our own UpdateableSpin
  • ConcurrentCollections including ImmutableStack, ImmutableQueue, ImmutableList, Immutable Sets, ImmutableDictionary, ConcurrentStack, ConcurrentQueue, ConcurrentBag, BlockingCollection
  • Parallel Programming including Parallel class and PLINQ

Enroll and start learning the foundations of multithreading and parallel computing in .NET.

Share

Course Material

  • About the Course
  • Intro to the Course
  • Resources
  • Intro to Multithreading
  • Outline
  • Main Concepts
  • Threads and Related Notions
  • Why Async Programming is Important
  • Demo of a Hanging WPF App
  • Problems related to Multithreading
  • Conclusion
  • Thread API, Thread Pool, APM & EAP
  • Outline
  • Create Process
  • Starting a Thread
  • Cancelling a Thread
  • Coordinating Threads
  • Threading and COM
  • Thread Pool
  • Worker and IO Threads
  • IO-Bound Operations
  • APM and EAP
  • Conclusion
  • Tasks
  • Outline
  • What is a Task
  • Task States
  • Cancelling Tasks
  • Chaining Tasks (Continuations)
  • Waiting for a Task
  • Creating IO-Based Tasks
  • Error Handling
  • Global Exceptions Handling
  • Nested and Child Tasks
  • TaskCompletionSource
  • Conclusion
  • Async and Await
  • Outline
  • What is Async
  • Async Method Return Types
  • Where await can be used
  • Exceptions in Async Code
  • Conclusion
  • Synchronization in Multithreaded Scenarios
  • Outline
  • Resources Shared by Threads
  • Atomic Operations and Thread Safety
  • Interlocked
  • Monitor (lock)
  • ReaderWriterLockSlim
  • Semaphore
  • SynchronizationContext
  • Deadlocks
  • Conclusion
  • Signaling Contructs
  • Outline
  • Signaling with AutoResetEvent and MRES
  • Countdown and Barrier
  • Crossing Boundaries of a Process
  • Conclusion
  • Spinning
  • Outline
  • Blocking vs Spinning
  • SpinLock and SpinWait
  • Implementing our own spinner
  • Conclusion
  • Concurrent Collections
  • Outline
  • Introduction
  • Immutable Stack and Queue
  • Implementing Immutable Stack
  • ImmutableList
  • Immutable Sets
  • ImmutableDictionary
  • Builders in Immutable Collections
  • ConcurrentQueue and ConcurrentStack
  • ConcurrentBag
  • ConcurrentDictionary
  • Blocking Collection and Producer-Consumer Pattern
  • Conclusion
  • Parallel Programming
  • Outline
  • Introduction
  • Parallel Class
  • PLINQ
  • Cancelling PLINQ and Parallel
  • Conclusion

Instructors

    • I'm thankful enough for that I love what I do.

      I began my career as a postgraduate student participating in Microsoft ImagineCup contest.

      I've been working with .NET platform since 2003. I've been professionally architecting and implementing software for more than 10 years, primarily based on the .NET platform. I'm passionate about building rich and powerful applications using modern technologies. I'm a certified specialist in Windows Applications and Service Communication Applications by Microsoft. I'm one of the coordinators of the MskDotNet User Group in Moscow.

      "If it's work, we try to do less. If it's art, we try to do more." - Seth Godin.

      What I can say is that software is my art.

Do Well. Do Good.

Authors have earned$12,147,777writing, publishing and selling on Leanpub, earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

Learn more about writing on Leanpub

The Leanpub 60-day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub