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
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










