Mutex Synchronization in Linux with Pthreads

Описание к видео Mutex Synchronization in Linux with Pthreads

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:    • pthreads #1: Introduction  
Eclipse Setup:    • C Makefile Project in Eclipse under L...  
Linux programming play-list:    • C Makefile Project in Eclipse under L...  

Комментарии

Информация по комментариям в разработке