RepoRust_RustThreading.html
copyright © James Fawcett
Revised: 11/13/2025
Contents:
Basic demos for Rust threading syntax:
Some of these demos develop examples provide code that will migrate to the Rust Story. The others
are explorations I made while learning rust.
-
rust_object_lifetime
Illustrates the object life-cycle for objects held in: static memory, heap memory, and
moved into a child thread.
-
rust_shared_strings
Demonstrates two threads mutating a string referenced by Arc<Mutex<&String>>>.
Build:
This Rust code was built with Cargo from Visual Studio Code terminal and tested on Windows 10.
Status:
This repository has just started, and will be growing over the next few weeks.