Académique Documents
Professionnel Documents
Culture Documents
OPERATING SYSTEMS
PART-B
October/November 2007
UNIT-I
a. Explain real time system.
OPERATING SYSTEMS
2 | Page
Disadvantages:
In this execution environment the CPU is often idle because of
the speed of the mechanized I/O device are slower than electronic
device
OPERATING SYSTEMS
3 | Page
4 | Page
several jobs are ready to run at the same time, then the system must
choose among them. Making this decision is CPU scheduling.
d. Discuss about Time sharing systems. (November/December 2009)
OPERATING SYSTEMS
5 | Page
6 | Page
OPERATING SYSTEMS
7 | Page
OPERATING SYSTEMS
8 | Page
OPERATING SYSTEMS
9 | Page
10 | P a g e
11 | P a g e
7. Truncating a file: There are occasions when the user wants the
attributes of a file to remain the same, but wants to erase the
contents of the file. Rather than forcing the user to delete the file
and then recreate it, this function allows all attributes to remain
unchanged (except for file length) but for the file to be reset to
length zero and its file space released.
5. Explain direct access method of a file.
Direct Access Method: Direct access method is also known as
relative access. A file is made up of fixedlength logical records that
allow programs to read and write records rapidly in no particular order.
The direct access method is based on a disk model of a file, since disks
allow random access to any file block. For direct access, the file is
viewed as a numbered sequence of blocks or records. A direct-access file
allows arbitrary blocks to be read or written.
Direct-access files are of great use for immediate access to large
amounts of information. Databases are often of this type. When a query
concerning a particular subject arrives, we compute which block
contains the answer, and then read that block directly to provide the
desired information.
12 | P a g e
Some systems allow only sequential file access; others allow only
direct access., Some systems require that a file be defined as sequential
or direct when it is created; such a file can be accessed only in a manner
consistent with its declaration.
13 | P a g e
14 | P a g e
15 | P a g e
16 | P a g e
17 | P a g e
OPERATING SYSTEMS
18 | P a g e
19 | P a g e
OPERATING SYSTEMS