Re: Multithreaded locks.c

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Sat Nov 04 2000 - 13:20:19 EST


> have got it right. Does anyone know what this part of the
> flock(2) manpage means?
>
> A single file may not simultaneously have both shared and
> exclusive locks.

AFAIK its saying LOCK_EX is exclusive and blocks shared locks and vice
versa. Its a standard reader-writer lock setup. LOCK_EX is writer, LOCK_SH
is reader.

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Nov 07 2000 - 21:00:16 EST