Udemy – Part A – Multithreading & Thread Synchronization – Pthreads

Udemy – Part A – Multithreading & Thread Synchronization – Pthreads
English | Tutorial | Size: 6.4 GB


Linux POSIX Threads ( Pthreads ), thread Synchronization, Operating System Concepts, C/C++ programming with Projects

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 Threads

Thread Creation & Termination

Race condition on Thread Creation

Passing Argument to Thread Function

Stack Memory Mgmt for Multi-threaded Programs

Thread Scheduling

2. Understanding Concurrency and Parallelism

Singlularism Vs Concurrency Vs Parallelism

Concurrent Process Design – 2 Examples

Threads as Light Weighted Process

Overlapping and Non-Overlapping Work

3. Joinable and Detached Threads

Joinable Vs Detached Threads

How to Join a thread

Whom to Join?

Sample – Map-Reduce Program

4. Inter Thread Communication

Understanding Callbacks and Function Pointers

Best way to implement ITC

Implementing Notification Chains

A Publisher Subscriber Model

How to Subscribe/UnSubscribe

How to send Notification to Subscribers

5. Asynchronous Thread Cancellation

Thread Cancellation

Asynchronous and Deferred Thread Cancellation

Problem with Async Thread Cancellation

Resource Leaking

Invariants

Deadlocks

Concept of Thread Cleanup Handlers

Prevent Resource Leaking

Data Structure Corruption – Invariants

Cancellation causing Deadlocks

6. Deferred Cancellation

Understanding Deferred Cancellation

Implementation

7. Listener Threads – Responsibility Delegation

Why Listener threads?

Designing Listener threads

Code Changes and Demo

Cancellation of blocked Threads

8. Thread Synchronization

Critical Section

Mutex Rules

Mutex Locking

Mutex Locking – Code Locking

Mutex Locking – Data Locking

Mutex based APIs

Mutexes in Action

9. Deadlocks

What are deadlocks and why do they happen?

Necessary conditions for Deadlock to happen

Mutex lock Ordering Causing Deadlocks

10. Condition Variables

Understanding CV

CV Vs Mutex

Wait( ) & Signal( )

Producer-Consumer Thread Synchronization

Spurious Wake Ups

Thread Vs Resource Specific CV

Broadcasting a CV

Implement Producer-Consumer Problem

11. Dining Philosopher Problem

Problem Description

Data Structures Setup

Assignment Program Setup

Flowchart/Algorithm Discussion

Final Implementation (Step by Step )

12. Semaphores

Introduction

Semaphores Vs Mutexes

How Semaphore work

Strict Alternation Problem

Semaphore Implementation

Semaphore Types

Strong and Weak Semaphores

Listing Upcoming Advanced Multi-Threading Topics for Sequel Course ( Under Progress )

= = = = = = = = = = = = = = = = = = = = = =

1. Pausing and Resuming Threads

2. Thread Pools

3. Standard Problems – Reader/Writer Problem

4. Implementing Thread Barriers

5. Implementing Thread Monitors

6. Solving Sync Problems using Monitors

7. Deadlock Detection and Prevention

8. Wait Queues

9. Implement Timers using Threads

10. How to fork a multi-threaded process

11. Process Synchronization using Named Semaphores

Happy Learning.

Featured Review

This 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

Buy Long-term Premium Accounts To Support Me & Max Speed


RAPIDGATOR
rapidgator.net/file/d7811ea34c7487bbc66fdee27d8c0e65/Part-A-Multithreading-Thread-Synchronization-Pthreads.part01.rar.html
rapidgator.net/file/78cd27ee07ecd08c5e257af72177dafa/Part-A-Multithreading-Thread-Synchronization-Pthreads.part02.rar.html
rapidgator.net/file/e25579546324735cebe30e9df947e7d1/Part-A-Multithreading-Thread-Synchronization-Pthreads.part03.rar.html
rapidgator.net/file/5d1ad34249a46f3530655060004b8110/Part-A-Multithreading-Thread-Synchronization-Pthreads.part04.rar.html
rapidgator.net/file/425af44def4a670d96cd13007c8078a1/Part-A-Multithreading-Thread-Synchronization-Pthreads.part05.rar.html
rapidgator.net/file/b357ef3971aaddfd307c9a81c5e564aa/Part-A-Multithreading-Thread-Synchronization-Pthreads.part06.rar.html
rapidgator.net/file/a477485755150604fc91d4cdb776598b/Part-A-Multithreading-Thread-Synchronization-Pthreads.part07.rar.html
rapidgator.net/file/98577f7f38e497019b437a7ab41fcb37/Part-A-Multithreading-Thread-Synchronization-Pthreads.part08.rar.html
rapidgator.net/file/bec4cca9323669ccb911266bf5e0bf58/Part-A-Multithreading-Thread-Synchronization-Pthreads.part09.rar.html
rapidgator.net/file/18a115f9b44b9ca1bf25b1ce908573c5/Part-A-Multithreading-Thread-Synchronization-Pthreads.part10.rar.html

NITROFLARE
nitroflare.com/view/73418B123FEEC5F/Part-A-Multithreading-Thread-Synchronization-Pthreads.part01.rar
nitroflare.com/view/953560D8181ADC8/Part-A-Multithreading-Thread-Synchronization-Pthreads.part02.rar
nitroflare.com/view/1A700DB13173DBE/Part-A-Multithreading-Thread-Synchronization-Pthreads.part03.rar
nitroflare.com/view/2FC1A5B5565F933/Part-A-Multithreading-Thread-Synchronization-Pthreads.part04.rar
nitroflare.com/view/2A4DAFC9224774B/Part-A-Multithreading-Thread-Synchronization-Pthreads.part05.rar
nitroflare.com/view/0A288FD83F074FC/Part-A-Multithreading-Thread-Synchronization-Pthreads.part06.rar
nitroflare.com/view/5FA0C614FE938AD/Part-A-Multithreading-Thread-Synchronization-Pthreads.part07.rar
nitroflare.com/view/E4D5500C3B5072E/Part-A-Multithreading-Thread-Synchronization-Pthreads.part08.rar
nitroflare.com/view/A16D355ABF9F803/Part-A-Multithreading-Thread-Synchronization-Pthreads.part09.rar
nitroflare.com/view/6AD1347431AF9E6/Part-A-Multithreading-Thread-Synchronization-Pthreads.part10.rar

If any links die or problem unrar, send request to goo.gl/aUHSZc

Leave a Comment