Re: Resource acquiring by contending processes.

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

 



Hi...

On Wed, Sep 17, 2008 at 6:23 PM, Himanshu Chauhan <chauhan.jpr@xxxxxxxxx> wrote:
> Hello all,
>
> Suppose I have a circular buffer in a driver and there are 3
> threads/processes sleeping for the data in it. Now when data arrives in
> circular buffer and I post a wakeup, what will happen? Only one of the
> thread would be able to read from the buffer and other would be put to
> sleep. So the other two will never get it.
>
> how can this be taken care of?

simulate something like system V IPC? I mean (well never use it in
kernel space), use pipe or shared memory and make it as a way to pass
data between processes.

regards,

Mulyadi.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux