tac0S
Template Affectional Command Operating System
synchdisk.cc File Reference

Routines to synchronously access the disk. More...

#include "copyright.h"
#include "synchdisk.h"

Detailed Description

Routines to synchronously access the disk.

Author
Olivier Hureau, Hugo Feydel , Julien ALaimo synchdisk.cc Routines to synchronously access the disk. The physical disk is an asynchronous device (disk requests return immediately, and an interrupt happens later on). This is a layer on top of the disk providing a synchronous interface (requests wait until the request completes).

Use a semaphore to synchronize the interrupt handlers with the pending requests. And, because the physical disk can only handle one operation at a time, use a lock to enforce mutual exclusion.

Copyright (c) 1992-1993 The Regents of the University of California. All rights reserved. See copyright.h for copyright notice and limitation of liability and disclaimer of warranty provisions.