fn a() {
        let m = Mutex::new(5);
        {
            let mut num = m.lock().unwrap();
            *num = 6;
        }
        println!("m = {:?}", m);
    }
// using mutexes to allow access to data from one thread at a time
using mutexes to allow access to data from one thread at a time
using mutexes to allow access to data from one thread at a time
fn a() {
        let m = Mutex::new(5);
        {
            let mut num = m.lock().unwrap();
            *num = 6;
        }
        println!("m = {:?}", m);
    }
fn a ( ) { let m = Mutex :: new ( 5 ) ; { let mut num = m . lock ( ) . unwrap ( ) ; * num = 6 ; } println ! ( " " m ) ; }
using mutexes to allow access to data from one thread at a time
using mutexes to allow access to data from one thread at a time