- 1. Rust in Parallel
- 2. Threads in Rust
- 2.1. Threads in Rust
- 2.2. Available cores
- 2.3. Simple thread (with fake work)
- 2.4. Simple thread
- 2.5. Simple thread with join
- 2.6. Show that threads work in parallel
- 2.7. Return value from thread
- 2.8. Handle panic! in threads
- 2.9. Threads polling the substhreads
- 2.10. Threads with messages
- 2.11. Two threads sending messages
- 2.12. Testing speed improvements with threads
- 2.13. Save many files (both CPU and IO intensive)
- 2.14. Rust threads read-only access to shared variables
- 2.15. Shared read-only variable with numeric value
- 2.16. Shared read-only variable with string value
- 2.17. Shared read-only variable with string value with Arc
- 2.18. Pass reference of read-only vector to thread
- 2.19. Pass reference of read-only vector to thread improved
- 2.20. Process read-only string slices in parallel
- 2.21. Filling the memory showing that Arc works
- 2.22. Pass and return ownership
- 2.23. Thread scope
- 2.24. chdir in threads
- 2.25. Environment variables in threads
- 2.26. Counter in a loop in the same process and thread
- 2.27. Mutex - without threads
- 2.28. Lock with Mutex
- 2.29. Counter with threads (shared variable) using Mutex
- 2.30. Counter with threads (local counting)
- 2.31. Counter with message passing
- 2.32. thread-local variables
- 2.33. Exercise: character counting
- 2.34. Exercise: word count
- 2.35. Exercise: count characters, words
- 2.36. Exercise: run several functions on the same text
- 2.37. Exercise: Download many files in threads
- 2.38. Solution: count characters, words
- 2.39. Solution: run several functions on the same text
- 3. Threadpool
- 3.1. Use threadpool with messages
- 4. Threaded map
- 4.1. Deprecated: A threaded version of the map function
- 5. rayon
- 5.1. What is rayon
- 5.2. replace map with par_iter
- 5.3. Tasks with different processing time
- 5.4. map with threads
- 6. async
- 6.1. tokio
- 6.2. Simple async example with Tokio