Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Multithreading with POSIX-Threads

Write your own Operating System via YouTube

Overview

Learn how to implement multithreading in C/C++ using POSIX-Threads (pthreads) in this comprehensive 34-minute video tutorial. Explore the fundamentals of multithreading, including the reasons for its implementation and the basics of pthreads. Dive into practical concepts such as thread creation, ending threads, running infinite loops, and utilizing void pointers. Discover techniques for managing multiple threads, understanding preemption, and implementing mutexes to prevent race conditions. Gain insights into mutex locks, cycle locks, and condition variables to enhance your multithreading skills. By the end of this tutorial, you'll have a solid foundation in multithreading with pthreads, enabling you to write more efficient and concurrent C/C++ programs.

Syllabus

Introduction
Why multithreading
pthreads
pthreadcreate
pthreat
ending threats
running infinitely
void pointer
run
multiple threats
preempts
mutex
mutex lock
cycle lock
condition variable

Taught by

Write your own Operating System

Reviews

Start your review of Multithreading with POSIX-Threads

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.