Reader/writer semaphores

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

 



Hi guys,

I was studying on reader-writer semaphores in LLD3. Refered to some
samaphore books. but some clarity is missing.

Reader/Writer Semaphores:
The critical section between down_read, up_read semaphores provides
read-only access to the protected resources.

I assume that any data in between thi calls is considered protected resources.
As there is no data manipulation what it means is reader1/ reader2 can
execute the same instrction simultaniously. but how is that possible.
How can a perform a read a read aeithout data manipulation i.e.
updating user buffers, updatinf the fpos, count. Will these not need
protection between the readers themselves i.e. reader1, reader2,
...readerN

How does this happen?

Regards,

Bhanu

--
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