Operating System Componen

Operating System Components

There are eight major operating system components.They are · Process management 
· I/O-system management 
· Secondary storage management 
· Networking 
· Protection system  
· Command-interpreter system 

(i) Process Management

·process can be thought of as a program in execution. A batch job is a process. A time-shared user program is a process. 

· A process needs certain resources including CPU time, memory, files, and I/O devices to accomplish its task. 

· A program by itself is not a process; a program is a passive entity, such as the contents of a file stored on disk, whereas a process is an active entity, with a program counter specifying the next instruction to execute. 

· A process is the unit of work in a system. 

· The operating system is responsible for the following activities in connection with process management:
  
· Creating and deleting both user and system processes 

· Suspending and resuming processes 

· Providing mechanisms for process synchronization 

· Providing mechanisms for process communication 

· Providing mechanisms for deadlock handling 

(ii) Main – Memory Management

· Main memory is a large array of words or bytes, ranging in size from hundreds of thousands to billions. Each word or byte has its own address. 

· Main memory is a repository of quickly accessible data shared by the CPU and I/O devices. 

· To improve both the utilization of the CPU and the speed of the computer's response to its users, we must keep several programs in memory. 

· The operating system is responsible for the following activities in connection with memory management: 

(ii) File Management

· File management is one of the most visible components of an operating system. 

· The operating system is responsible for the following activities in connection with file management: 

· Creating and deleting files 

· Creating and deleting directories 

· Supporting primitives for manipulating files and directories 

· Mapping files onto secondary storage 

· Backing up files on stable (nonvolatile) storage media 

(iii) I/O System management

· One of the purposes of an operating system is to hide the peculiarities of specific hardware devices from the user. This is done using the I/O subsystem. 

· The I/O subsystem consists of 

· A memory management component that includes buffering, caching, and spooling 

· A general device-driver interface 

· Drivers for specific hardware devices

(iv) Secondary storage management

· Because main memory is too small to accommodate all data and programs, and because the data that it holds are lost when power is lost,the computer system must provide secondary storage to back up main memory. 

· The operating system is responsible for the following activities in connection with disk management: 

· Free-space management 

· Storage allocation 

· Disk scheduling 

(vi) Networking

· A distributed system is a collection of processors that do not share memory, peripheral devices, or a clock. 
  
· Instead, each processor has its own local memory and clock, and the processors communicate with one another through various communication lines, such as high-speed buses or networks. 

· The processors in the system are connected through a communication network, which can be configured in a number of different ways. 

(vii) Protection System

· Various processes must be protected from one another's activities. For that purpose, mechanisms ensure that the files, memory segments, CPU, and other resources can be operated on by only those processes that have gained proper authorization from the operating system. 

· Protection is any mechanism for controlling the access of programs, processes, or users to the resources defined by a computer system. 

· Protection can improve reliability by detecting latent errors at the interfaces between component subsystems. 

(viii) Command-Interpreter System

· One of the most important systems programs for an operating system is the command interpreter. 

· It is the interface between the user and the operating system. 

· Some operating systems include the command interpreter in the kernel. Other operating systems, such as MS-DOS and UNIX, treat the command interpreter as a special program that is running when a job is initiated, or when a user first logs on (on time-sharing systems). 

· Many commands are given to the operating system by control statements. 

· When a new job is started in a batch system, or when a user logs on to a time-shared system, a program that reads and interprets control statements is executed automatically. 

· This program is sometimes called the control card interpreter or the command-line interpreter and is often known as the shell


Comments

Popular posts from this blog

Artificial Intelligence

The taxonomy of CASE Tools

Zoho Second round - adding a digit to all the digits of a number