Skip to content

Instantly share code, notes, and snippets.

@mikeyhew
mikeyhew / playground.rs
Created November 18, 2017 02:08 — forked from anonymous/playground.rs
Rust code shared from the playground
extern crate crossbeam;
extern crate rand;
use rand::Rng;
#[allow(unused)]
use std::sync::{RwLock, Mutex};
const ARRAY_LEN: usize = 1000;
const READS_PER_WRITE: u32 = 5;