791120c0c1
- Switch from a single additional thread (receiving/holding a single `Arc::clone` reference) running a loop modeling 10 sequential jobs, to a loop generating 10 threads each modeling 1 job (each getting their own `Arc::clone` reference) - use the previously ignored `for` loop var to keep the execution timing approx the same - Print a more descriptive waiting message (taking an opportunity to use comment to disambiguate the count) |
||
---|---|---|
.. | ||
README.md | ||
threads1.rs |
Threads
In most current operating systems, an executed program’s code is run in a process, and the operating system manages multiple processes at once. Within your program, you can also have independent parts that run simultaneously. The features that run these independent parts are called threads.