Re: fcntl file locking and pthreads

From: Miquel van Smoorenburg (miquels@cistron-office.nl)
Date: Sun May 04 2003 - 10:24:21 EST


In article <Pine.LNX.4.33.0305040922020.32427-100000@iole.cs.brandeis.edu>,
Mikhail Kruk <meshko@cs.brandeis.edu> wrote:
>CLONE_FILES is an argument to clone(), I'm using pthreads and I don't
>know if LinuxThreads implementation of pthreads gives me control of
>how clone is called. Anyway, if I understand what CLONE_FILES does,
>it should be given to clone, because threads do have to be able to share file
>descriptors, probably. But not the locks!

Are you sure. I think threads /of a process/ have to share the
locks, under Linux that would translate to a thread-group.

Mike.

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



This archive was generated by hypermail 2b29 : Wed May 07 2003 - 22:00:19 EST