Guardian Programmer's Guide

Table Of Contents
Coordinating Concurrent File Access
Guardian Programmer’s Guide 421922-014
3 - 11
Avoiding Single-Process Deadlocks
By issuing a call to SETMODE function 4 on each file number, subsequent read
operations return immediately with an error code if the read could not proceed.
Deadlock is thus avoided.
Figure 3-5. Avoiding the Single-Process Deadlock
VST019.VSD