Welcome to Concurrency in Rust
Rust has full support for concurrency using OS threads with mutexes and channels.
The Rust type system plays an important role in making many concurrency bugs compile time bugs. This is often referred to as fearless concurrency since you can rely on the compiler to ensure correctness at runtime.
Mục lục
Buổi học nên kéo dài khoảng 3 tiếng và 20 phút, bao gồm thời gian 10 phút nghỉ trưa. Nội dung buổi học bao gồm:
Segment | Thời lượng |
---|---|
Threads | 30 minutes |
Channels | 20 minutes |
Send and Sync | 15 minutes |
Shared State | 30 minutes |
Exercises | 1 hour and 10 minutes |
Speaker Notes
- Rust lets us access OS concurrency toolkit: threads, sync. primitives, etc.
- The type system gives us safety for concurrency without any special features.
- The same tools that help with “concurrent” access in a single thread (e.g., a called function that might mutate an argument or save references to it to read later) save us from multi-threading issues.