Multithreading and Parallel Programming in C# (The Course)
This Course is part of the following Tracks:
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.
- About the Course
- Intro to the Course
- Intro to Multithreading
- Main Concepts
- Threads and Related Notions
- Why Async Programming is Important
- Demo of a Hanging WPF App
- Problems related to Multithreading
- Thread API, Thread Pool, APM & EAP
- 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
- 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
- Async and Await
- What is Async
- Async Method Return Types
- Where await can be used
- Exceptions in Async Code
- Synchronization in Multithreaded Scenarios
- Resources Shared by Threads
- Atomic Operations and Thread Safety
- Monitor (lock)
- Signaling Contructs
- Signaling with AutoResetEvent and MRES
- Countdown and Barrier
- Crossing Boundaries of a Process
- Blocking vs Spinning
- SpinLock and SpinWait
- Implementing our own spinner
- Concurrent Collections
- Immutable Stack and Queue
- Implementing Immutable Stack
- Immutable Sets
- Builders in Immutable Collections
- ConcurrentQueue and ConcurrentStack
- Blocking Collection and Producer-Consumer Pattern
- Parallel Programming
- Parallel Class
- Cancelling PLINQ and Parallel
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 $12 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.