|
via Udemy |
Go to Course: https://www.udemy.com/course/multithreading_parta/
Welcome to the Course Series on Multi-Threading - The Master Class Course on Threads.This course is for those who want to develop fundamental concepts on Multi-threading and related concepts. In this course, we shall be going to cover Multi-threading concepts based on Pthreads (POSIX threads) on the Linux platform. Though We use the C language to demonstrate the concepts, concepts hold good for any programming language. This course is equally valuable for C++ programmers. Other language programmers may also find this course useful as we explain Multithreading concepts close to the ground zero levels No Abstraction.We shall discuss several concepts involved in multithreading and demonstrate each concept through a sample program. Several Important Concepts include but are not limited to - Deadlocks, Mutual Exclusion, Atomicity, Thread Synchronization, Race Conditions, Thread forking, and many more.In the Next Installment of this course, we shall extend our knowledge of Multi-threading to Advance Concepts, including mini-projects on Multithreading and Thread Synchronization. At each stage of this Course series, you shall be writing a lot of multi-threaded Codes. So be ready to Master the Multi-threading. Along the journey, we shall cover several interview-favorite topics and Questions to prepare you alongside for interviews.Best of luck!Table Of Contents:= = = ======= = = = 1. Understanding ThreadsThread Creation & TerminationRace condition on Thread CreationPassing Argument to Thread FunctionStack Memory Mgmt for Multi-threaded ProgramsThread Scheduling2. Understanding Concurrency and ParallelismSinglularism Vs Concurrency Vs ParallelismConcurrent Process Design - 2 ExamplesThreads as Light Weighted ProcessOverlapping and Non-Overlapping Work3. Joinable and Detached ThreadsJoinable Vs Detached ThreadsHow to Join a threadWhom to Join?Sample - Map-Reduce Program4. Inter Thread CommunicationUnderstanding Callbacks and Function PointersBest way to implement ITCImplementing Notification ChainsA Publisher Subscriber ModelHow to Subscribe/UnSubscribeHow to send Notification to Subscribers 5. Asynchronous Thread CancellationThread CancellationAsynchronous and Deferred Thread CancellationProblem with Async Thread CancellationResource LeakingInvariantsDeadlocksConcept of Thread Cleanup HandlersPrevent Resource Leaking Data Structure Corruption - InvariantsCancellation causing Deadlocks6. Deferred CancellationUnderstanding Deferred CancellationImplementation7. Listener Threads - Responsibility DelegationWhy Listener threads?Designing Listener threadsCode Changes and Demo Cancellation of blocked Threads8. Thread SynchronizationCritical SectionMutex RulesMutex LockingMutex Locking - Code LockingMutex Locking - Data LockingMutex based APIsMutexes in Action9. DeadlocksWhat are deadlocks and why do they happen?Necessary conditions for Deadlock to happenMutex lock Ordering Causing Deadlocks 10. Condition VariablesUnderstanding CVCV Vs MutexWait( ) & Signal( )Producer-Consumer Thread SynchronizationSpurious Wake UpsThread Vs Resource Specific CVBroadcasting a CV Implement Producer-Consumer Problem 11. Dining Philosopher ProblemProblem DescriptionData Structures Setup Assignment Program SetupFlowchart/Algorithm DiscussionFinal Implementation (Step by Step )12. SemaphoresIntroductionSemaphores Vs Mutexes How Semaphore work Strict Alternation ProblemSemaphore ImplementationSemaphore TypesStrong and Weak SemaphoresListing Upcoming Advanced Multi-Threading Topics for Sequel Course ( Under Progress )= = = = = = = = = = = = = = = = = = = = = = 1. Pausing and Resuming Threads 2. Thread Pools3. Standard Problems - Reader/Writer Problem4. Implementing Thread Barriers5. Implementing Thread Monitors6. Solving Sync Problems using Monitors7. Deadlock Detection and Prevention8. Wait Queues9. Implement Timers using Threads10. How to fork a multi-threaded process11. Process Synchronization using Named Semaphores Happy Learning.Featured ReviewThis course is amazing. I'm so glad the instructor decided to offer courses on Udemy. First, it's very rare to find courses on more advanced subject matter. As a software developer, I love learning but am often disappointed that Udemy largely has beginner-oriented material (understandably so). Then there's the CSEPracticals courses. I learned a LOT here. This is some valuable, real world stuff. It's incredibly useful to learn how multi-threading in C is actually applied in real world use cases and to implement these use cases on your own. The instruction was clear, the information valuable. The code samples are plentiful. The instructor is clearly very knowledgeable about networking and so the course examples tend to lean in that direction. I'm very impressed and had a LOT of fun with this course. I can't wait to check out the other ones by CSEPracticals.I have just finished this course, and I cannot recommend it more. Its an excellent course on multi-threading and achieves exactly what it intends to from the start. Some features of this course 1) You write a lot of code, and you become more confident in using the pthread library ( along with some other things, I learned how important proper use of assert function can be). 2) Abishekh goes in depth on different synchronization method and shows you have to build them using fundamental tools like mutex and condition variables. This gives you a lot of confidence, and you can build your own in future in case your chosen OS or library does not have those built-in. This in my opinion is the biggest strength of the course. 3) The team of CSE Practicals is very responsive and you can expect to get a response on your queries within a very reasonable time-frame. Ongoing to the course sequel now. Ovais