Operating Systems
Operating Systems
Ans: A real time operating system is used when rigid time requirement have been placed on
the operation of a processor or the flow of the data; thus, it is often used as a control device in
a dedicated application. Here the sensors bring data to the computer. The computer must
analyse the data and possibly adjust controls to modify the sensor input.
They are of two types:
1. Hard real time OS
2. Soft real time OS
Hard-real-time OS has well-defined fixed time constraints. But soft real time operating
systems have less stringent timing constraints
Q8. What is Throughput, Turnaround time, waiting time and Response time?
Ans :
Throughput: Number of processes that complete their execution per time unit
Turnaround time: Amount of time to execute a particular process
Waiting time: Amount of time a process has been waiting in the ready queue
Response time: Amount of time it takes from when a request was submitted until the first
response is produced, not output (for time-sharing environment).
Q14. Under what circumstances do page faults occur? Describe the actions taken by the
operating system when a page fault occurs?
Ans : A page fault occurs when an access to a page that has not been brought into main
memory takes place. The operating system verifies the memory access, aborting the program
if it is invalid. If it is valid, a free frame is located and I/O is requested to read the needed
page into the free frame. Upon completion of I/O, the process table and page table are
updated and the instruction is restarted
Q25. What is the cause of thrashing? How does the system detect thrashing? Once it
detects thrashing, what can the system do to eliminate this problem?
Ans : Thrashing is caused by under allocation of the minimum number of pages required by a
process, forcing it to continuously page fault. The system can detect thrashing by evaluating
the level of CPU utilization as compared to the level of multiprogramming. It can be
eliminated by reducing the level of multiprogramming