The riddle of atomic data transfer from process A to process B
Moish
moish at mln.co.il
Wed Apr 13 18:44:21 IDT 2011
On 13/04/2011 15:41, Omer Zak wrote:
> A full fledged queue would force the consuming process (process A) to
> read and process all data written by the producing process (process M)
> even when process A needs only the most recent value whenever it reads
> process M's data.
>
> On Wed, 2011-04-13 at 16:21 +0300, Shachar Shemesh wrote:
>> On 13/04/11 16:07, Omer Zak wrote:
>>> The riddle:
>>> 1. If the operating system being used is Linux, what other mechanisms
>>> (besides turning off interrupts) are available to single-processor
>>> systems to accomplish this?
>>> 2. If the system has a multi-core processor or several processors, which
>>> low overhead synchronization method can be used to accomplish this?
>>>
>>>
>> Read in Linux Device Drivers how to implement a queue with no locks. You
>> don't need the data access to be atomic, so long as the queue pointer
>> can be accessed atomically.
>
Circular queue?
--
Moish
More information about the Linux-il
mailing list