Skip to content

CodeSample: rwdeq

Dominik Dingel perfbook 1 version Applied

Status from this message: Queued, thank you, Dominik!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2CodeSamples: Fix compiler warningsCodeSamples/SMPdesign/deqtorture.h CodeSamples/SMPdesign/locktdeq.c CodeSamples/SMPdesign/matmul.c +2 more+5 -80 replies
2/2CodeSamples: add read/write solution to the deq exampleCodeSamples/SMPdesign/Makefile CodeSamples/SMPdesign/lockrwdeq.c+158 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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