Operating System Design issues, I/O Buffering

Operating System Design Issues

Edit

    Explain operating system design issues ? ---- 2 M

Ans :      While designing operating system we must have two considerations :-

                1) I / O devices are extremely slow as compare to processor.

                2) Every I / O device is having different speed of operation.

To  handle this we can have one solution of multiprogramming where we can have different levels in the I / O  

  1. Logical I / O It treats device as logical resource
  2. Device I / O It works with I / O instructions.
  3. File System It deals with files.

This are some of the design issues of operating system while dealing with I / O.

Input-Output-Buffering

Edit

Q      What is I /O buffering ? Explain different types of I / O buffering ?    (4 m)

Ans:-     Buffering is the technique by which the device manager can keep slower I / O devices busy during times when a process is not requiring I/ O operations. Input / Output buffering is a mechanism that improves the through put of input and output operations. It is implemented directly in hardware and the corresponding drivers. I / O buffering increases the efficiency of the operating system and the performance of individual process.

Types of buffering

a) No buffering

  No buffering
      

b) Single buffering:-  This approach provides a speed up in I / O operation.

Single buffering

c) Double buffering :-  Double buffering ensures that the process will not have to wait on I / O.

Double buffering

d) Circular buffering :-
Circular buffering

 

References

Edit
  • WikiNote Foundation

Last modified: Friday, 20 September 2019, 1:59 PM