Electrical, Computer, and Systems Engineering
ECSE-4730 Computer Systems Architecture
Fall 1998
Problem Set 5/6-- Due MONDAY, November 23, 1998
|
Your Name |
|
|
Circle Your Section |
8-9:50 am 10-11:50 am noon-1:50pm |
Notes:
----------------------------------Do not write below this line-----------------------------------------
|
1 |
2 |
3 |
Total |
|
10 |
25 |
15 |
50* |
*Note: all homeworks will be normalized and equally weighted.
TA Signature :___________________________________
A) (2 pts) What is multiprogramming ?
B) (6 points) State how the following operating system concepts are used to support multiprogramming ?
Processes & Threads:_____________________________________________
________________________________________________________________
Virtual memory: __________________________________________________
_________________________________________________________________
Mailbox: _________________________________________________________
_________________________________________________________________
C) (2 pts) What issues arise from the need to support multi-user environments and interactive (time-sharing) environments ?
A) (6 pts) Define:
CPU-burst cycle and I/O burst cycle: _________________________________
____________________________________________________________________
Preemptive scheduling: ________________________________________________
____________________________________________________________________
Non-preemptive scheduling: __________________________________________
____________________________________________________________________
Utilization vs Throughput : _______________________________________________
_______________________________________________________________________
Turnaround vs waiting time :______________________________________________
_______________________________________________________________________
Process Burst time Priority
P1 10 3
P2 1 1
P3 2 3
P4 1 4
P5 5 2
The processes have arrived in the order P1, P2, P3, P4, P5, all at time 0.
FCFS: _________________________________________________________________
SJF: _________________________________________________________________
Priority: _______________________________________________________________
RR: _________________________________________________________________
_____________________________________________________________________
B) (6 points) Discuss the pros and cons of linked-allocation of file blocks and how MS-DOS implements a linked-allocation structure, the File Allocation Table (FAT).
C) (4 points) How would one a) allocate a free block to a file in DOS, and b) access a random block efficiently in DOS using the FAT ?