synchronization between two process without lock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe perfbook" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux