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: http://youtu.be/ynCc-v0K-do
Eclipse Setup: http://youtu.be/E36QpJdEghg
Linux programming play-list: https://www.youtube.com/watch?v=E36QpJdEghg&list=PL-suslzEBiMrqFeagWE9MMWR9ZiYgWq89
Видео Mutex Synchronization in Linux with Pthreads канала Brian Fraser
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: http://youtu.be/ynCc-v0K-do
Eclipse Setup: http://youtu.be/E36QpJdEghg
Linux programming play-list: https://www.youtube.com/watch?v=E36QpJdEghg&list=PL-suslzEBiMrqFeagWE9MMWR9ZiYgWq89
Видео Mutex Synchronization in Linux with Pthreads канала Brian Fraser
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
What is a semaphore? How do they work? (Example in C)pthreads #1: IntroductionCppCon 2017: Ansel Sermersheim “Multithreading is the answer. What is the question? (part 1 of 2)”Linux fork() IntroductionSemaphore Vs. Mutex - A Clear UnderstandingC++ Threading #3: Data Race and MutexContainers unplugged: Linux namespaces - Michael KerriskCondition variables in CC Dynamic Memory Debugging with ValgrindInstall and Run C++ in Visual Studio Code (Linux)Linux Exec System CallThread synchronization with mutexes in CWhat is difference between Semaphore and MutexLogical Volume Management (LVM) - LinuxProducer - Consumer Problem in Multi-ThreadingFunctional Programming in 40 Minutes • Russ Olsen • GOTO 2018Git Tutorial for Beginners: Command-Line FundamentalsLinux Basics -- Scheduling Tasks with CronMultithreading Using pthreads in C language (Part 1)