Skip to content

Glossary: Rust Beyond the Basics

thread

Also written: threads, thread::spawn, thread::scope

A separate line of work inside a program, started with `thread::spawn`. `thread::scope` starts threads that are all joined before it returns, so they may borrow local variables.

Where the book teaches it

Related terms

JoinHandlemoveconcurrency