Tag

Condition Variable

0 views collected around this technical thread.

Go Programming World
Go Programming World
Dec 30, 2024 · Backend Development

Understanding and Using sync.Cond in Go: Source Code Analysis and Practical Examples

This article explains the purpose, internal implementation, and correct usage patterns of Go's sync.Cond concurrency primitive, walks through its source code, demonstrates simple and advanced examples—including a custom concurrent waiting queue—and provides test cases to illustrate its behavior in real-world scenarios.

Condition VariableExampleGo
0 likes · 20 min read
Understanding and Using sync.Cond in Go: Source Code Analysis and Practical Examples
Deepin Linux
Deepin Linux
Nov 27, 2024 · Fundamentals

Linux Thread Synchronization: Mechanisms, Implementations, and Practical Applications

This article provides a comprehensive overview of Linux thread synchronization, explaining core concepts such as mutexes, condition variables, semaphores, and futexes, describing their implementation details, code examples, and common usage scenarios like producer‑consumer and reader‑writer problems.

Condition VariableFutexLinux
0 likes · 33 min read
Linux Thread Synchronization: Mechanisms, Implementations, and Practical Applications
DeWu Technology
DeWu Technology
Nov 23, 2020 · Fundamentals

PThread Essentials: Thread Creation, Synchronization, and Advanced Techniques

This session reviews PThread fundamentals and advanced techniques in C, covering thread creation, termination, attributes, mutexes, reader‑writer locks, condition variables, semaphores, barrier synchronization, and thread‑specific data, with code examples and a concluding homework assignment.

Condition VariableMutexSemaphore
0 likes · 11 min read
PThread Essentials: Thread Creation, Synchronization, and Advanced Techniques