1148 Chapter 55
55-7. If you have access to other UNIX implementations, use the program in Listing 55-2
(i_fcntl_locking.c) to see if you can establish any rules for fcntl() record locking
regarding starvation of writers and regarding the order in which multiple queued
lock requests are granted.
55-8. Use the program in Listing 55-2 (i_fcntl_locking.c) to demonstrate that the kernel
detects circular deadlocks involving three (or more) processes locking the same file.
55-9. Write a pair of programs (or a single program that uses a child process) to bring
about the deadlock situation with mandatory locks described in Section 55.4.
55-10. Read the manual page of the lockfile(1) utility that is supplied with procmail. Write a
simple version of this program.