How To Write Bulletproof Multi-Threaded C# Code

This course teaches you how to write robust multi-threaded C# code. A skill every professional .NET developer must know

4.56 (1278 reviews)
Udemy
platform
English
language
Programming Languages
category
instructor
How To Write Bulletproof Multi-Threaded C# Code
10,077
students
3 hours
content
Mar 2024
last update
$79.99
regular price

What you will learn

Learn to write multi-threaded code

Safely abort a thread

How can two or more threads exchange data?

The main reasons why multi-threaded code crashes

Learn to resolve race conditions

Use AutoResetEvent and ManualResetEvent in your code

The Dining Philosopher problem

Line up threads with the Barrier class

... and much more!

Why take this course?

Do you know how to write robust multi-threaded C# code that does not crash?

Lets face it: writing multi-threaded code is hard. The sobering truth is that, unless you know exactly what you're doing, your code is pretty much guaranteed to crash in production.

Don't let this happen to you!

It doesn't have to be like this. If you have a good understanding of multi-threaded programming and follow a few simple industry best practices, you can write robust code that can take a beating.

I wrote a multi-threaded conversion utility a few years ago, that successfully migrated 100,000 documents from SharePoint 2010 to SharePoint 2013. The program worked flawlessly the first time, because I implemented all of the best practices for writing asynchronous C# code.

Sound good?

In this course I am going to share these practices with you.

In a series of short lectures I will cover many multi-threading topics. I will show you all of the problems you can expect in asynchronous code, like race conditions, deadlocks, livelocks and synchronisation issues. I'll show you quick and easy strategies to resolve these problems.

By the end of this course you will be able to write robust multi-threaded C# code that can take a beating.

Why should you take this course?

You should take this course if you are a beginner or intermediate C# developer and want to take your skills to the next level. Asynchronous programming might sound complicated, but all of my lectures are very easy to follow, and I explain all topics with clear code and many instructive diagrams. You'll have no trouble following along.

Or maybe you're working on a critical section of code in a multi-threaded C# project, and need to make sure your code is rock-solid in production? The tips and tricks in this course will help you immensely.

Or maybe you're preparing for a C# related job interview? This course will give you an excellent foundation to answer any threading-related questions they might throw at you.

Screenshots

How To Write Bulletproof Multi-Threaded C# Code - Screenshot_01How To Write Bulletproof Multi-Threaded C# Code - Screenshot_02How To Write Bulletproof Multi-Threaded C# Code - Screenshot_03How To Write Bulletproof Multi-Threaded C# Code - Screenshot_04

Reviews

Igor
January 25, 2024
ok. I like this author for a byte size lectures about complicated problems. This lecture is like that and gives simple introduction to multi threading problems in .NET. Problem is, that it completely skips Tasks, that are standard in C# and a preferred way to solving multi threading problems. I feel that this course requires an update.
Maciej
October 23, 2023
Very good presentation, little bit slow but not too bad. I thoroughly enjoyed this course. Thank you!
Rahul
October 23, 2023
Amazing course!!! Thank you for such knowledgeable content on Multithreading. This will help me to understand the basic and most important concepts which generally are used in real-time applications. => One request, please make a course that contains all the concepts of multithreading in real-time projects with .NET core.
Gabriel
May 12, 2023
Course it's a bit outdated but he is amazing, guy really know stuff, just don't forget to pratice 100 exercices or tomorrow you will forget everything because he there is like 25 new concepts. The files with no extension rename to .ZIP, just open the program.cs with notepad.
Krzysztof
January 6, 2023
A bit outdated for 2022. Threads in newest C# doesn't even support Thread.Abort() anymore. A bit shortish, and its a kind of audiobook, where no practical things are performed, we just follow the things presented. Still, pretty well explained, and a good intro to multi threading.
Shyqyri
January 1, 2023
I expected the lectures to be more complex but they are simply put, created with care and explaining all the required details regarding threading
Rebecca
December 2, 2022
Good material, good examples and practice, good material coverage in the quizzes. I had fun and used what I learned to create a program I've been wanting for some time. ^_^ 1 point of confusion: when I downloaded the resources and they had no extension it really threw me off. Easily found the solution by searching the course comments but still felt a little unbalanced :).
Charles
October 20, 2022
I really enjoyed the course: it was very informative and cleared up a lot of confusion that I had about creating multi-threaded applications. My only wish is for the course to have had real-life scenarios or examples on when/why you would implement certain features of multi-threaded programming. Nevertheless, the course did force me to re-think how I could have completed past tasks such as migrating documents into SharePoint. Had I taken this course prior to that task, I could have completed the task in a fraction of the seven hours that it took me.
M.
May 21, 2022
Although some generic things are explained, this course seems to be abandoned. Last upodate 2017. Noinfo on dotnet core and .net 6
Ganesh
January 5, 2022
You are awesome Mark, I feel very much comfortable with the way all the concepts were explained and the Demos
Saranya
December 28, 2021
Every section is organized with proper continuity. Explanation about the concept is just amazing. Quiz and the summary helps me to get note of the juicy points.
Guillermo
December 19, 2021
Very good course with clear explanations for the concepts taught. I think it would help adding solutions to real world problems and which solution fits best. In my opinion a part 2 to this course would be helpful.
Mauricio
October 4, 2021
I really liked it. Before taking the course, I thought multithreading was just parallel functions running together, but didn't realise the implications behind it. Before starting the course, I read a comment or two stating that it lacked the Task class. Not sure about what it is, but I am sure that if required, I now have enough knowledge to understand the concepts behind it and use it. Anyway, now it's up to me, right?
Alejandro
September 23, 2021
The course is great. It has simple examples that show the non-triviality of the problem and simple steps towards solving this complex problem. Recommended!
Elmehdi
August 26, 2021
very clear explanations, the instructor is an expert in his field and goes deep in the explanations with easy to understand examples

Charts

Price

How To Write Bulletproof Multi-Threaded C# Code - Price chart

Rating

How To Write Bulletproof Multi-Threaded C# Code - Ratings chart

Enrollment distribution

How To Write Bulletproof Multi-Threaded C# Code - Distribution chart
476792
udemy ID
4/15/2015
course created date
11/22/2019
course indexed date
Bot
course submited by