March 2018
Intermediate to advanced
272 pages
7h 4m
English
Now that we understand the different approaches for concurrency in Rust, we can start with the most basic one: creating threads. If you have previously used languages such as Java or C++, you will probably be familiar with the new Thread() syntax in the former or the std::thread in the latter. In both cases, you will need to specify some code that the new thread will run, and some extra information the thread will have. In both cases, you can start threads and wait for them to finish.
Read now
Unlock full access