X hits on this document

Powerpoint document

Chapter 10 : Case Study - UNIX - page 37 / 48

122 views

0 shares

0 downloads

0 comments

37 / 48

Ceng 334 - Operating Systems

10-37

Locking Files in UNIX (1)

Accessing a file by several processes need some critical section management

This is done by locks

A lock is defined by a file name, the starting byte and the number of bytes

When placing a lock, the process specifies to

Block: when the existing block is removed, the process is unblocked and the lock is placed

Not to block: the system call returns with a status code telling whether the lock succeeded or not

Document info
Document views122
Page views122
Page last viewedThu Dec 08 06:19:03 UTC 2016
Pages48
Paragraphs407
Words2238

Comments