xxvi
Contents
in Detail
55.3
Record Locking with
fcntl()
....................................................................................... 1124
55.3.1
Deadlock ........................................................................................... 1128
55.3.2
Example: An Interactive Locking Program............................................... 1129
55.3.3
Example: A Library of Locking Functions ................................................ 1133
55.3.4
Lock Limits and Performance................................................................. 1135
55.3.5
Semantics of Lock Inheritance and Release............................................. 1136
55.3.6
Lock Starvation and Priority of Queued Lock Requests.............................. 1137
55.4
Mandatory Locking.................................................................................................. 1137
55.5
The /proc/locks File ................................................................................................ 1140
55.6
Running Just One Instance of a Program..................................................................... 1142
55.7
Older Locking Techniques ........................................................................................ 1144
55.8
Summary................................................................................................................ 1146
55.9
Exercises ................................................................................................................ 1147
Chia sẻ với bạn bè của bạn: