liveBook · Manning

Concurrency primitive

Also called synchronization primitive

A concurrency primitive is a fundamental language or runtime mechanism for coordinating concurrent execution or controlling access to shared state or resources.

How 2 Manning books explain it

Grokking Simplicity

A synchronization construct that provides a defined operation for coordinating concurrent execution paths or managing shared resources.

How it is used
Uses reusable queues, cuts, and related tools to share resources safely and coordinate timelines.
How deep it goes
Builds queues, dropping queues, Cut, and JustOnce incrementally, including ordering analysis and JavaScript implementation details.
Examples
Demonstrates cart-total queues, dropping document saves, parallel web requests, completion barriers, and one-time text messages.
What you can do after
Build it from scratch, diagnose timing bugs with timeline diagrams, and refactor application-specific coordination into reusable primitives.

Read how Grokking Simplicity explains concurrency primitive →

Learn Concurrent Programming with Go

Classical concurrency primitives are low-level synchronization mechanisms traditionally used to coordinate concurrent execution.

How it is used
Coordinates concurrent executions through shared memory when low-level synchronization suits the problem.
How deep it goes
Explains mutexes, condition variables, and semaphores, then addresses scheduling, races, complexity, and implementation trade-offs.
Examples
Uses mutexes, condition variables, semaphores, waitgroups, channels, and shared-memory critical sections as concrete artifacts.
What you can do after
Builds synchronization tools from scratch and makes better-informed choices about when and how to use them.

Read how Learn Concurrent Programming with Go explains concurrency primitive →

Also covered in

What to know first

Related concepts

Questions about concurrency primitive

What is concurrency primitive?

A concurrency primitive is a fundamental language or runtime mechanism for coordinating concurrent execution or controlling access to shared state or resources.

Which Manning books explain concurrency primitive?

Grokking Simplicity and Learn Concurrent Programming with Go.

What should I know before learning concurrency primitive?

Manning books that teach concurrency primitive usually introduce locking, thread, Clojure and concurrency first.

What kinds of concurrency primitive are there?

Kinds of concurrency primitive include actor, *agent*, atom, workflow, Clojure var and mutex.

What is concurrency primitive also called?

Concurrency primitive is also called synchronization primitive.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.