recently (7 months ago) Contributed a small feature to Rust (https:// github.com/rust-lang/rust/pull/33976) https://github.com/komamitsu/td-client-rust https://github.com/komamitsu/treasuredata_fdw
Mutual Exclusion Lock Can contain Send RWLock Read: Shared Lock Write: Exclusive Lock Can contain Send + Sync Atomic types Atomic counter - We can update these types in multi-threads
of writes increases The performance of Mutex doesn't significantly change even under write heavy operations. Also, it’s really optimized on Linux AtomicUsize is always really fast. Use it if you want just a counter