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.

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.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

80% Royalties. Earn $16 on a $20 book.

We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

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