Decision Workspace
clhlock vs mcslock vs spinning
Side-by-side comparison of Rust crates
41
clhlock
growingv0.2.2
An implementation of Craig and, indenpendently, Magnussen, Landin, and Hagersten queue lock for mutual exclusion, referred to as CLH lock.
50
mcslock
growingv0.4.1
An implementation of Mellor-Crummey and Scott contention-free lock for mutual exclusion, referred to as MCS lock.
43
spinning
growingv0.1.0
Mutexes and SIX locks implemented by spinning
Core Metrics
| clhlock | mcslock | spinning | |
|---|---|---|---|
| Health Score | 41 | 50 | 43 |
| Total Downloads | 3.7K | 7.9K | 1.9M |
| 30d Downloads | 6 | 55 | 40.3K |
| Dependents | 0 | 10 | 39 |
| Releases | 4 | 7 | 5 |
| Last Updated | 501d ago | 416d ago | 1942d ago |
| Age | 1y 7m | 2y 3m | 5y 9m |
Health Breakdown
clhlock
Maintenance
5
Quality
11
Community
6
Popularity
4
Documentation
15
mcslock
Maintenance
10
Quality
11
Community
9
Popularity
5
Documentation
15
spinning
Maintenance
3
Quality
11
Community
10
Popularity
7
Documentation
12
Technical Details
| clhlock | mcslock | spinning | |
|---|---|---|---|
| Version | 0.2.2 | 0.4.1 | 0.1.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 1 | 2 | 1 |
| Crate Size | 31KB | 47KB | 13KB |
| Features | 1 | 4 | 2 |
| Yanked % | 25.0% | 71.4% | 60.0% |
| Edition | 2021 | 2021 | 2018 |
| MSRV | 1.65.0 | 1.65.0 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •mcslock leads with a health score of 50/100, but none of the options score above 80.
- •spinning has the most downloads (1.9M), suggesting wider adoption.
- •⚠ clhlock, mcslock, spinning have not been updated in over a year.