Operating System Questions
Operating System Questions
6.1 Improvement in the uniformity of the magnetic film surface to increase disk
reliability. A significant reduction in overall surface defects to help reduce read/write
errors. Ability to support lower fly heights (described subsequently). Better stiffness to
reduce disk dynamics. Greater ability to withstand shock and damage
Q. How a data written onto a magnetic disk?
6.2 The write mechanism is based on the fact that electricity flowing through a coil
produces a magnetic field. Pulses are sent to the write head, and magnetic patterns are
recorded on the surface below, with different patterns for positive and negative currents.
An electric current in the wire induces a magnetic field across the gap, which in turn
magnetizes a small area of the recording medium. Reversing the direction of the current
reverses the direction of the magnetization on the recording medium.
Q. How a data read from a magnetic disk?
6.3 The read head consists of a partially shielded magnetoresistive (MR) sensor. The
MR material has an electrical resistance that depends on the direction of the
magnetization of the medium moving under it. By passing a current through the MR
sensor, resistance changes are detected as voltage signals.
Q. Explain the difference between a cav system and a multiple zone recording
system?
6.4 For the constant angular velocity (CAV) system, the number of bits per track is
constant. An increase in density is achieved with multiple zoned recording, in which
the surface is divided into a number of zones, with zones farther from the center
containing more bits than zones closer to the center.
Q. Define the terms track, cylinder and sector?
6.5 On a magnetic disk. data is organized on the platter in a concentric set of rings,
called tracks. Data are transferred to and from the disk in sectors. For a disk with
multiple platters, the set of all the tracks in the same relative position on the platter is
referred to as a cylinder.
Q. What is a typical disk sector size?
6.6 512 bytes.
Q. Define the term seek time,rotaional time,access time and transfer time?
6.7 On a movable-head system, the time it takes to position the head at the track is
known as seek time. Once the track is selected, the disk controller waits until the
appropriate sector rotates to line up with the head. The time it takes for the beginning of
the sector to reach the head is known as rotational delay. The sum of the seek time, if
any, and the rotational delay equals the access time, which is the time it takes to get
into position to read or write. Once the head is in position, the read or write operation is
then performed as the sector moves under the head; this is the data transfer portion of
the operation and the time for the transfer is the transfer time.
Q. What difference between a CD and a DVD account for the larger capacity of the
latter?
6.14 1. Bits are packed more closely on a DVD. The spacing between loops of a spiral
on a CD is 1.6 m and the minimum distance between pits along the spiral is 0.834 m.
The DVD uses a laser with shorter wavelength and achieves a loop spacing of 0.74 m
and a minimum distance between pits of 0.4 m. The result of these two improvements
is about a seven-fold increase in capacity, to about 4.7 GB. 2. The DVD employs a
second layer of pits and lands on top of the first layer A dual-layer DVD has a
semireflective layer on top of the reflective layer, and by adjusting focus, the lasers in
DVD drives can read each layer separately. This technique almost doubles the capacity
of the disk, to about 8.5 GB. The lower reflectivity of the second layer limits its storage
capacity so that a full doubling is not achieved.
Q. Explain the serpentine recording?
6.15 The typical recording technique used in serial tapes is referred to as serpentine
recording. In this technique, when data are being recorded, the first set of bits is
recorded along the whole length of the tape. When the end of the tape is reached, the
heads are repositioned to record a new track, and the tape is again recorded on its
whole length, this time in the opposite direction. That process continues, back and forth,
until the tape is full.
Q. List three broad classification of external,or peripheral,devices?
7.1 Human readable: Suitable for communicating with the computer user. Machine
readable: Suitable for communicating with equipment. Communication: Suitable for
communicating with remote devices
Q. What is the international reference alphabet?
7.2 The most commonly used text code is the International Reference Alphabet (IRA), in
which each character is represented by a unique 7-bit binary code; thus, 128 different
characters can be represented.
Q. What are the major functions of an i/o module?
7.3 Control and timing. Processor communication. Device communication. Data
buffering. Error detection.
Q. List and briefly define the techniques for performing i/o?
7.4 Programmed I/O: The processor issues an I/O command, on behalf of a process,
to an I/O module; that process then busy-waits for the operation to be completed
before proceeding. Interrupt-driven I/O: The processor issues an I/O command on
behalf of a process, continues to execute subsequent instructions, and is
interrupted by the I/O module when the latter has completed its work. The
subsequent instructions may be in the same process, if it is not necessary for that
process to wait for the completion of the I/O. Otherwise, the process is suspended
pending the interrupt and other work is performed. Direct memory access
(DMA): A DMA module controls the exchange of data between main memory and
an I/O module. The processor sends a request for the transfer of a block of data to
the DMA module and is interrupted only after the entire block has been
transferred.
Q. What is the difference between memory mapped i/o and isolated i/o?
7.5 With memory-mapped I/O, there is a single address space for memory locations
and I/O devices. The processor treats the status and data registers of I/O modules as
memory locations and uses the same machine instructions to access both memory and
I/O devices. With isolated I/O, a command specifies whether the address refers to a
memory location or an I/O device. The full range of addresses may be available for
both.
Q. When a device interrupt occurs, how does the processor determine which
device issued the interrupt?
7.6 Four general categories of techniques are in common use: multiple interrupt lines;
software poll; daisy chain (hardware poll, vectored); bus arbitration (vectored).
Q. When a DMA module takes control of a bus and while it retains control of the
bus, What does the processor do?
7.7 The processor pauses for each bus cycle stolen by the DMA module.
Q. What are some typical distinguishing characteristics of RISC organization?
13.1 (1) a limited instruction set with a fixed format, (2) a large number of registers or
the use of a compiler that optimizes register usage, and (3) an emphasis on optimizing
the instruction pipeline.
Q. Briefly explain the 2 basic approaches used to minimize register memory
operation on RISC machine?
13.2 Two basic approaches are possible, one based on software and the other on
hardware. The software approach is to rely on the compiler to maximize register usage.
The compiler will attempt to allocate registers to those variables that will
be used the most in a given time period. This approach requires the use of
sophisticated program-analysis algorithms. The hardware approach is simply to
use more registers so that more variables can be held in registers for longer
periods of time.
Q. If a circular buffer register is used to handle local variables for nested
procedures, Describe 2 appraoches for handling global variables.
13.3 (1) Variables declared as global in an HLL can be assigned memory locations by
the compiler, and all machine instructions that reference these variables will use
memory-reference operands. (2) Incorporate a set of global registers in the
processor. These registers would be fixed in number and available to all
procedures
Q. What are typical characteristics of a RISC instruction set archietecture?
13.4 One instruction per cycle. Register-to-register operations. Simple addressing
modes. Simple instruction formats.