Documente Academic
Documente Profesional
Documente Cultură
2.What are the two basic goal that must be considered when designing an operating
system?
Operating system manages main memory, processor, device and file system
manipulation. It also responsible for protection and security of the system,
control over system performance, job accounting, error detection aids, and
coordination between other software and users. Operating system also supports
multiple execution mode.
The two basic goals of Operating System:
(i) Efficient use of a Computer System
(ii) User convenience
An Operating System can not provide both because user convenience often
conflicts with efficient use of a computer system. Efficient use is important when
a computer is shared by several users while user convenience is important in
personal computers.
User convenience has higher priority than efficient use of a Computer System
in Windows Operating System while efficient use of a Computer System has higher
priority than user convenience in Unix Operating System.
4.Dekker’s Algorithm,test And Set,Swap and the Semaphore P and V may all be used to
enforce mutual exclusion.Compare and contrast their respective advantages and
disadvantages.
*********
6. Consider the following table of arrival time and burst time for three processes
P0, P1 and P2.
Process Arrival time Burst Time
P0 0 ms 9 ms
P1 1 ms 4 ms
P2 2 ms 9 ms
The pre-emptive shortest job first scheduling algorithm is used. Scheduling is
carried out only at arrival or completion of processes. What is the average waiting
time for the three processes?