Dear Bhanu,
Let me put it into simple words.
If you want to protect a write operation such as a++ where a is global
variable of your program/module (i.e. it is manipulated by your code only)
then please use write semaphore. You will play safe.
Otherwise if a is a variable inside kernel and
On 4/1/08, Fabio De Francesco [EMAIL PROTECTED] wrote:
On Tuesday 01 April 2008 23:57:47 bhanu nani wrote:
Hi guys,
I was studying on reader-writer semaphores in LLD3. Refered to some
samaphore books. but some clarity is missing.
Reader/Writer Semaphores
bhanu nani wrote:
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
use.
- Bhanu
On 4/1/08, Fabio De Francesco [EMAIL PROTECTED] wrote:
On Tuesday 01 April 2008 23:57:47 bhanu nani wrote:
Hi guys,
I was studying on reader-writer semaphores in LLD3. Refered to some
samaphore books. but some clarity is missing.
Reader/Writer Semaphores
On Wed, Apr 02, 2008 at 11:22:17AM -0700, bhanu nani wrote:
My understanding: Semaphore are the tools to protect a region of code
by bloking access to other threads access while the first thead is
accessing it.
You shouldn't protect a region of code. Semaphores (and other locking
primitives)
to
protect them? or some location updates to my own structure which I
have to make for future use.
- Bhanu
On 4/1/08, Fabio De Francesco [EMAIL PROTECTED] wrote:
On Tuesday 01 April 2008 23:57:47 bhanu nani wrote:
Hi guys,
I was studying on reader-writer semaphores
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
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
On Tuesday 01 April 2008 23:57:47 bhanu nani wrote:
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