All of lore.kernel.org
 help / color / mirror / Atom feed
* synchronization between two process without lock
@ 2017-08-04 14:52 Yubin Ruan
  2017-08-04 15:57 ` Yubin Ruan
  0 siblings, 1 reply; 11+ messages in thread
From: Yubin Ruan @ 2017-08-04 14:52 UTC (permalink / raw)
  To: Paul E. McKenney; +Cc: perfbook

Hi,
I am sure the subject explain my intention. I got two processes trying
to modifying the same place. I want them to do it one after one, or,
if their operations interleave, I would like to let them know that the
content have been changed and polluted by the other so that the
content should be given up. That is, I would rather give up the data,
if polluted, than having a false one.

I try to set a atomic ref counter, but it seems impossible to do that
without a lock to synchronize.

Note that I don't want a strict synchronization: the situation is a
lot better. The data can be given up if that place has been polluted.

Yubin


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

end of thread, other threads:[~2017-09-01  1:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-04 14:52 synchronization between two process without lock Yubin Ruan
2017-08-04 15:57 ` Yubin Ruan
2017-08-04 19:50   ` Paul E. McKenney
2017-08-05  1:02     ` Yubin Ruan
2017-08-07 16:48       ` Yubin Ruan
2017-08-07 16:57         ` Paul E. McKenney
2017-08-08  2:12           ` Yubin Ruan
2017-08-08  9:42             ` Junchang Wang
2017-08-23 18:30             ` Yubin Ruan
2017-08-31 22:10               ` Paul E. McKenney
2017-09-01  1:53                 ` Yubin Ruan

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.