Week 11 - July 22-26

Introduction

This week we study threads and mutexes. Threads allow us to perform parallel programming within a process. Mutexes provide us with a synchronization mechanism to protect shared resources used by multiple threads. We will also look at server design.

Videos

ThreadsProcesses and threads - Gary explains
An introduction to Linux Threads
MutexesThread synchronization with mutexes in C
Deadlock and conditions for deadlock in OS

Quiz

Lecture Material

Labs

Assignment

Introduction to Assignment 2.

Sample Code

Threads and Mutexes