Input Output Functions of an Operating System

Authors Avatar

Ricki Lambert

Operating Systems

Assignment 2

Input Output Subsystem

Introduction

An operating system is the device used to communicate with all input and output devices. For example this may be a keyboard or mouse, things of this nature. This process is controlled by a virtual layer which is known as a application input output interface. It is this device that ensures every input output device under goes a buffering and scheduling process.

From here the operating system can communicate with the processor in order for the hardware device to be controlled / managed. There are four main functions that assist with this processor communications and they are as follows;

  1. Input output instructions vs. memory mapped. – This is where information is sent in order for the process to be logged in to its own memory location within a register.

  1. Input output hardware device – At this stage the operating system will check whether it has to read the device or write to it.

  1. Polled vs. interrupt driven – Modern operating systems use interrupt driven methods in preference to its counterpart. There are numerous reasons for this; however the most considerable would be the error detection efficiency. Although the polled had this function, its efficiency at dealing with it, then clearing it from the system was very poor indeed. Polled works with 3 differing modes and they are status, data and command.
Join now!

Processing Techniques

There are 3 different techniques used by the processor for input output subsystem they are as follows;

Polled mode/programmed input output – This method is poor; it stops the CPU when it determines whether to read or write. It works within three modes and they are status, data and command. The operating will cycle through the states until the processes are complete. An example of this can be seen below;

Above we can see that the operating system must cycle through the differing registers until the correct response is received. The functions that ...

This is a preview of the whole essay