Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Objectives:
• Meet the data management needs and requirements of the user
• Guarantee that the data in the file are valid
• Optimize performance
• Provide I/O support for a variety of storage device types
• Minimize or eliminate the potential for lost or destroyed data
• Provide a standardized set of I/O interface routines
• Provide I/O support for multiple users
Ans. An important variation on the linked allocation method is the use of a file
allocation table (FAT).
It is a simple but efficient method of disk-space allocation and is used by the
MS-DOS and OS/2 Operating systems. A section of the disk at the beginning of each
partition is set aside to contain the Table. The table has one entry for each disk block,
and is indexed by block number. The FAT is used Much as is a linked list. The
directory entry contains the block number of the first block of the file. The table
entry indexed by the block number then contains the block number of the next block
in the file. This chain continues until the last block, which has a special end of file
value as the table entry.
Unused blocks are indicated by a 0 table value. Allocating a new block to a file is
simply a matter of Finding the first 0-valued table entry, and replacing the previous end
of the file value with the Address of the new block. The 0 is then replaced with end of
the file value.
The FAT allocation scheme can result in a significant number of disk head
seeks, unless the FAT is cached. The disk head must move to the start of the partition
to read the FAT and find the location of the block itself. In the worst case, both
moves occur for each of the blocks. A benefit is that random access time is
improved, because the disk head can find the location of any block by reading the
information of the FAT.
PART-B
SPOOLING:-
Spooling is refers to a process of transferring data by placing it in a temporary
working area where another program may access it for processing at a later point in
time.
The most common spooling application is print spooling:
Documents formatted for printing are stored onto a buffer (usually an area on a
disk) by a fast processor and retrieved and printed by a relatively slower printer at its
own rate. As soon as the fast processor has written the document to the spool device it
has finished with the job and is fully available for other processes.
Without spooling, a word processor would be unable to continue until printing
finished. Without spooling, most programs would be relegated to patterns of fast
processing and long waits, an inefficient paradigm.
CACHE :-
Small memories on the CPU can operate faster and much larger main memory.
CACHE memory is a component that transparently stores data so that future requests
for that data can be served faster. A cache is the region of the fast memory that holds
copies of data. Access to the cached copy is more efficient than access to the original.
For instance, the instructions of the currently running Process are stored on disk,
cached in physical memory, and copied again in the CPU’S secondary and primary
caches.
The difference between a buffer and a cache is that a buffer may hold the only
existing copy of a Data item, whereas a cache, by definition, just holds a copy on the
faster storage of an item that Resides elsewhere. For instance, to preserve semantics
and to enable efficient scheduling of disk I/O,
The major simplicity between cache, a spool is a buffer that holds output of a
device, such as a printer, that Cannot accept interleaved data streams. Although a printer
can serve only one job at a time, several applications may wish to print their output
concurrently, without having their current output mixed together. The operating system
solves this problem by intercepting all output to the printer. Each applications output is
spooled to a separate disk file.
Q.5. Compute the total head movement using FCFS and SSTF algorithms
(assuming the head is initially positioned at track 26) for the following
disk accesses (in order): 26,37,100,14,88,33,99,12.
Ans.
FCFS ALGORITHM: TOTAL HEAD MOVEMENTS
RAID LEVEL 0+1: This is a combination of RAID levels 0 and 1. Raid 0 provides
the performance while RAID1 provides the reliability. Generally it provides better
performance than RAID 5.