Update 'README.md'

master
bill 2 years ago
parent b250ef67be
commit 7760317405

@ -2,23 +2,24 @@
This code tests the best way to collaborate between threads This code tests the best way to collaborate between threads
Platform tested: ## Platform tested:
- Windows (MSVC, gcc-12.2, WSL-gcc11.2, WSL-clang-14) - Windows (MSVC, gcc-12.2, WSL-gcc11.2, WSL-clang-14)
- macOS (clang-13, gcc-12.2) - macOS (clang-13, gcc-12.2)
- Linux (gcc-12.1, gcc-11.3, clang-12) - Linux (gcc-12.1, gcc-11.3, clang-12)
- arm64 Linux (gcc-12.1, clang-12) - arm64 Linux (gcc-12.1, clang-12)
Method tested: ## Method tested:
- C++20 std::semaphores - C++20 std::semaphores
- Native semaphores - Native semaphores
- Condition Variables - Condition Variables
- Busy waiting (spinlock) with or without delay - Busy waiting (spinlock) with or without delay
Results: ## Results:
```
macOS linux win, msc win, gcc macOS linux win, msc win, gcc
cv 6000 10000 700 26000 cv 6000 10000 700 26000
busy 360 300 550 300 busy 360 300 550 300
nsmph 600 4418 6000 1200 nsmph 600 4418 6000 1200
smph 240 1000/dl 660 dl smph 240 1000/dl 660 dl
```
Bug on g++ 12.2.0 might cause deadlock, see: gcc12.2.0deadlockbug.cpp Bug on g++ 12.2.0 might cause deadlock, see: gcc12.2.0deadlockbug.cpp

Loading…
Cancel
Save