rustlings/exercises/threads
Donald Guy 791120c0c1
threads1: use more threads, model more reference counting
- 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)
2021-05-04 18:49:13 -04:00
..
README.md docs(exercises): updated all exercises readme files 2021-04-23 19:54:31 +02:00
threads1.rs threads1: use more threads, model more reference counting 2021-05-04 18:49:13 -04:00

Threads

In most current operating systems, an executed programs 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.

Further information