OS Sheet
OS Sheet
OS Sheet
: اﻟرﻗم اﻟﺟﺎﻣﻌﻲ
: اﻻﺳم
1
Second : Answer the following (2 mark)
( From MODERN OPERATING SYSTEMS 2nd ed. ANDREW S. TANENBAUM)
1. What are the two main functions of an operating system?
2. What is multiprogramming?
3. What is spooling? Do you think that advanced personal computers will have
spooling as a standard feature in the future?
4. On early computers, every byte of data read or written was directly handled by the
CPU (i.e., there was no DMA). What implications does this organization have for
multiprogramming?
6. The family of computers idea was introduced in the 1960s with the IBM
System/360 mainframes. Is this idea now dead as a doornail or does it lives on?
7. One reason GUIs were initially slow to be adopted was the cost of the hardware
needed to support them. How much video RAM is needed to support a 25 line 80
row character monochrome text screen? How much for a 1024 768 pixel 24-bit
color bitmap? What was the cost of this RAM at 1980 prices ($5/KB)? How much
is it now?
9. List some differences between personal computer operating systems and mainframe
operating systems.
10. A computer has a pipeline with four stages. Each stage takes the same time to do its
work, namely, 1 nsec. How many instructions per second can this machine execute?
11. An alert reviewer notices a consistent spelling error in the manuscript of an operating
systems textbook that is about to go to press. The book has approximately 700 pages,
each with 50 lines of 80 characters each. How long will it take to electronically scan the
text for the case of the master copy being in each of the levels of memory of Fig. 1-7? For
internal storage methods, consider that the access time given is per character, for disk
devices assume the time is per block of 1024 characters, and for tape assume the time
given is to the start of the data with subsequent access at the same speed as disk access.
2
12. In Fig. 1-9, the MMU compares the incoming (virtual) address to the limit register,
causing a fault if it is too large. An alternative design would be to first add the virtual
address to the base register and then compare the result to the (physical) address in the
limit register. Are the two methods logically equivalent? Are they equivalent in
performance?
13. When a user program makes a system call to read or write a disk file, it provides an
indication of which file it wants, a pointer to the data buffer, and the count. Control is
then transferred to the operating system, which calls the appropriate driver. Suppose that
the driver starts the disk and terminates until an interrupt occurs. In the case of reading
from the disk, obviously the caller will have to be blocked (because there are no data for
it). What about the case of writing to the disk? Need the caller be blocking awaiting
completion of the disk transfer?
16. Why is the process table needed in a timesharing system? Is it also needed in personal
computer systems in which only one process exists, that process taking over the entire
machine until it is finished?
17. Is there any reason why you might want to mount a file system on a nonempty
directory? If so, what is it?
21. What is the essential difference between a block special file and a character special
file?
23. The client-server model is popular in distributed systems. Can it also be used in a
single computer system?