Mutex Synchronization in Linux with Pthreads @DrBFraser
Mutex Synchronization in Linux with Pthreads  @DrBFraser
Uploaded February 2015 | Updated November 2026, 3 hours ago
Demo of using threads in Linux (pthreads) to run very simple processing in parallel. Uses a mutex (pthread_mutex) to synchronize the processing to avoid a race condition.

Topics:
- Timing the process without using threads (Linux time command)
- Switching processing to new threads
- Running multiple threads without a mutex lock (race condition)
- Solving a race condition
- Timing the multi-threaded version
- Common problem when passing arguments to a thread
- Common problem spotting race conditions

Links:
Create a single thread: youtu.be/ynCc-v0K-do
Eclipse Setup: youtu.be/E36QpJdEghg
Linux programming play-list: youtube.com/watch?v=E36QpJdEghg&list=PL-suslzEBiMrqFeagWE9MMWR9ZiYgWq89
Mutex Synchronization in Linux with PthreadsIntroduction to JUnit 5C++ File Input / OutputDeserializing JSON: GSON and JavaCreating a Repository: Git & EclipseProject Spartan: SFU Embedded CosplayJUnit 5 testing in Android Studio: Android ProgrammingStudent: BB CollabUltra for Exam HelpMulti-file C Program with Makefile in EclipseArrayList: Java for Programmerspthreads #3: Dynamic MemoryRecord Response Video with Zoom
Brian Fraser |

Mutex Synchronization in Linux with Pthreads

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER