Glossary coding Term Page

Arc<T>

A thread-safe shared-ownership reference-counted pointer

arc #rust#concurrency#ownership
Korean version

Aliases

Atomic Reference CountedArc

Prerequisites

Related Concepts

Core Idea

[[arc|Arc<T>]] is the atomically reference-counted pointer that lets multiple threads share the same value safely. It is conceptually close to Rc<T>, but its reference count can be updated safely across threads.

Why It Matters Here

Mathbong uses Arc for the Arc<Mutex<T>> pattern, shared-state protection, and comparisons with Rc<T>. It is one of the first tools to reach for when shared ownership enters a threaded program.

Posts Mentioning This Concept