CodeSample: rwdeq
Status from this message: Queued, thank you, Dominik!
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | CodeSamples: Fix compiler warningsCodeSamples/ CodeSamples/ CodeSamples/ +2 more | +5 | 0 replies | |
| 2/2 | CodeSamples: add read/write solution to the deq exampleCodeSamples/ CodeSamples/ | +158 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] CodeSample: rwdeq
From: Dominik Dingel <[email protected]>
Hi all,
here is a somehow naive implementation of a reader/writer lock based approch for the parallel deq problem.
The next step would be to use it as an introduction example in the text, as due its way of implementation (taking always a read lock, working always with an atomic counter) it is a less efficient way of doing things, compared with the tandem approch. Then the benefits of partitioning might be even more obvious.
Thanks
Dominik
Dominik Dingel (2):
CodeSamples: Fix compiler warnings
CodeSamples: add read/write solution to the deq example
CodeSamples/SMPdesign/Makefile | 5 +- CodeSamples/SMPdesign/deqtorture.h | 2 +- CodeSamples/SMPdesign/lockrwdeq.c | 154 +++++++++++++++++++++++++++++++++++ CodeSamples/SMPdesign/locktdeq.c | 4 - CodeSamples/SMPdesign/matmul.c | 3 +- CodeSamples/SMPdesign/matmul_block.c | 3 +- CodeSamples/SMPdesign/smpalloc.c | 1 - 7 files changed, 163 insertions(+), 9 deletions(-) create mode 100644 CodeSamples/SMPdesign/lockrwdeq.c
Signature · 1 line
1.9.1