← All Exercises
Thread Spawning with Channels
advancedrust
Background
Rust thread safety is enforced at compile time through ownership, preventing data races.
Problem
Spawn threads and communicate via channels using Rust ownership-based concurrency model.
Input
Data to send between threads
Output
Results received via channel
Sample tests
Sample 1
Input: spawn thread, send data
Expected: received on main thread
Your solution
Learning objective
Learn Rust concurrency model and message passing