Glossary coding Term Page

Send/Sync

Rust traits for thread transfer safety and shared-reference safety

send-sync #rust#concurrency#trait
Korean version

Aliases

SendSync

Prerequisites

Related Concepts

Core Idea

[[send-sync|Send/Sync]] are Rust's concurrency traits for describing whether a type can move across threads safely or be referenced by multiple threads at once. The compiler checks these traits when you spawn threads or pass data through channels.

Why It Matters Here

Mathbong uses Send/Sync to explain why Rc<T> cannot cross threads, why Arc<T> can, and what problem Mutex<T> is solving. They show that Rust concurrency rules are type properties, not just runtime conventions.

Posts Mentioning This Concept