Parallel multithreaded actors without locks P&L: -8 (≃ -519 CNY)
Implement efficient scalable multiple thread communication
github.com/samsquire/multiversion-concurrency-control/blob/main/src/main/java/main/Main.java
YAML
项目
产品
This project is to implement efficient multithreading to maximise use of all CPU cores, without too much overhead.
-8.0000 ħ (8.0 HUR) (+0.0)
For 100 threads I managed to get 100 million multithread communication event requests a second, taking 10 nanoseconds to communicate between threads
大多数计算机使用锁来同步,这非常慢。这种设计速度要快得多,并且允许省略锁以提高性能。
我使用非同步数据结构,并以每批消息 10 纳秒的成本实现每秒 1 亿次请求的原始通信性能。
- 以原本语言显示 -
Most computers use locks to synchronize, which are very slow. This design is far faster and allows locks to be elided for performance.
I use unscynchronized data structures and achieve 100 million requests a second raw communication performance for a cost of 10 nanoseconds per batch of messages.