A small program stores a counter and a text label in a Mutex inside an Arc. It should read the state, release the lock before the expensive formatting, and then return a string with the result.
Mutex must happen only in a short block.Result.cargo run
3 and label window.render_snapshot function, which:
Mutex,On a successful run, the program should print exactly one line:
snapshot=3:window
cargo runClick a line and write what it prints. Explanation is optional.