Next: About this document
Up: No Title
Previous: I/O Buffering
- Used for sharing of non-sharable devices !!
- Blocking user when opening a file to an allocated non-sharable device causes delays
and bottlenecks
- Use a spool to the an intermediate medium - such as a disk file
- Example includes a printer (lpr) spooler
- Only the printer can open certain files on the system, such as /dev/lpr
- Privledged access to files (associated with particular devices)
Here's a series of events that occur when a user (scm6mrw) tries to print a file :
- The user (scm6mrw) opens /dev/lpr
- Fileman opens /tmp/scm6mrw
- scm6mrw writes to lpr file, Fileman diverts output to disc file
- scm6mrw closes dev/lpr
- Fileman closes /tmp/scm6mrw
- Fileman sends filename "scm6mrw" to spooler
- Spooler eventually opens /tmp/scm6mrw for reading
- Spooler copies file to lpr
- Spooler closes and deletes /tmp/scm6mrw
Omer F Rana
Fri Feb 14 18:33:29 GMT 1997