On Thu, Feb 20, 2014 at 06:15:15PM +0000, Zuckerman, Boris wrote: > Hi, > > You probably already considered that - sorry, if so… > > Instead of the mutex Windows use ExecutiveResource with shared and exclusive > semantics. Readers serialize by taking the resource shared and writers take > it exclusive. I have that implemented for Linux. Please, let me know if there > is any interest!
See include/linux/rwsem.h... Anyway, the really interesting question here is what does POSIX promise wrt lseek() vs. write(). What warranties are given there? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/