For advanced undergraduate/graduate-level courses. This text offers an exceptionally up-to-date, in-depth, and broad-based exploration of the latest advances in UNIX-based operating systems. Focusing on the design and implementation of the operating system itself -- not on the applications and tools that run on it -- this text compares and analyzes the alternatives offered by several important UNIX variants, and covers several advanced subjects, such as multi-processors and threads.
......(更多)
......(更多)
......(更多)
5.4 Relationship Between File Descriptors and Open Files
4BSD provides the flock system call, which only supports advisory locking of open files, but allows both shared and exclusive locks
......(更多)