5.3 Debugging under multitasking

5.3.5 Avoiding the stream problem

The best way to avoid the problems that arise when two processes compete for the same stream is to prevent the situation from occurring.

You can prevent stream conflicts by using the Common Lisp Condition System. If a process does not need to use the I/O system, you can trap its attempts to do so by specifying a condition handler at the top level of the process. If the condition arises, a handler allows you to correct the situation by aborting the input or output attempt, by killing the process, or by entering the Debugger through a breakpoint in the initial I/O stream.

See Common Lisp: The Language, 2nd edition, by Guy L. Steele, Jr. (hereafter referred to as CLtL2) for more information about the Common Lisp Condition System.


The Advanced User's Guide - 9 SEP 1996

Generated with Harlequin WebMaker