All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] CodeSample: rwdeq
@ 2015-08-12  7:55 Dominik Dingel
  2015-08-12  7:55 ` [PATCH 1/2] CodeSamples: Fix compiler warnings Dominik Dingel
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Dominik Dingel @ 2015-08-12  7:55 UTC (permalink / raw)
  To: perfbook; +Cc: Dominik Dingel

From: Dominik Dingel <dingel@linux.vnet.ibm.com>

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

-- 
1.9.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-08-21 16:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-12  7:55 [PATCH 0/2] CodeSample: rwdeq Dominik Dingel
2015-08-12  7:55 ` [PATCH 1/2] CodeSamples: Fix compiler warnings Dominik Dingel
2015-08-12  7:55 ` [PATCH 2/2] CodeSamples: add read/write solution to the deq example Dominik Dingel
2015-08-13 16:43 ` [PATCH 0/2] CodeSample: rwdeq Paul E. McKenney
2015-08-17  6:22   ` Paul E. McKenney
2015-08-19 19:06     ` Dominik Dingel
2015-08-19 21:22       ` Paul E. McKenney
2015-08-20 17:36         ` Dominik Dingel
2015-08-21 16:21           ` Paul E. McKenney

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.