ITT

11
1 Operating System & it’s Functions

Transcript of ITT

Page 1: ITT

1

Operating System

& it’s Functions

Page 2: ITT

Index

2

Introduction 03 Functions of Operating System

05 Process Management 06 Memory Management

07 File Management 08 Device Management 09 Security 10 Command Interpretation

11

Page 3: ITT

Introduction

3

Operating System is responsible for booting up, shutting down and management of resources while the computer is up and running.

An Operating System(OS) is a software, consisting of an integrated set of programs that controls computer resources(CPU, memory, I/O devices etc.) and provides common services for efficient execution of various application software with an interface or virtual machine that is more convenient to use.

Operating Systems are found on almost any devices that contains a computer, from cellular phones to video games consoles to supercomputers and web servers.

Examples of popular operating systems for personal computers are Microsoft Windows, Mac Os and Linux..

• Operating System is an interface between hardware and software.

Page 4: ITT

4

The two major objectives of operating system are as follows:

• Making a computer system user-friendly: To make computer system usable by a large number of

users. To shield programmers from the complexity of the

hardware resources. To manage all the parts of system, and present the user

with an interface or virtual machine that is easier to program to use.

• Managing the resources of a computer system: To perform tasks such as granting resource request,

accounting for resource usage and mediating conflicting requests from different programs and users.

To allocate various resources of a computer system to specific programs and users to execute their jobs successfully.

To simultaneously handle several application to operate the computer system efficiently and fairly.

Page 5: ITT

Functions of Operating System

5

Process Management

Memory Management

File management

Device management

Security

Command Interpretation

Page 6: ITT

Process Management

6

Process management is an integral part of any modern-day operating system (OS). The OS must allocate resources to processes, enable processes to share and exchange information, protect the resources of each process from other processes and enable synchronization among processes.

The five major activities of an operating system with respect to process management are:• Creation and deletion of user and system processes;• Suspension and resumption of processes;• A mechanism for process synchronization;• A mechanism for process communication; and• A mechanism for deadlock handling.

Page 7: ITT

Memory Management

7

Memory management is the act of managing computer memory. The essential requirement of memory management is to provide ways to dynamically allocate portions of memory to programs at their request, and free it for reuse when no longer needed. The memory management module of an operating system takes care of the allocation, de-allocation of memory space to various programs in need of this resource.The major activities of an operating system with reference to memory management are:• To keep track of ‘which part of memory are currently used by whom’;• To decide ‘which process is loaded into memory when memory space

becomes available; and to allocate and de-allocate memory space, as needed.

Page 8: ITT

File management

8

File management is used to control how data is stored and retrieved. Without a file system, information placed in a storage area would be one large body of data with no way to tell where one piece of information stops and the next begins. 

The five major activities of an operating system with reference to file management are given as under:• The creation and deletion of files;• The creation and deletion of directories;e• The support of primitives for manipulating files and

directories;• The mapping of files onto secondary storage;• The back up of files on stable storage media.

Page 9: ITT

Device management

9

Device management controls peripheral devices by sending them commands in their own proprietary language. The software routine that knows how to deal with each device is called a "driver," and the OS requires drivers for the peripherals attached to the computer. When a new peripheral is added, that device's driver is installed into the operating system.The device management module of operating system takes care of controlling all computer’s I/O devices. It keeps track of I/O requests from processes, issues commands to the I/O devices, and ensures correct data transmission to/ from an I/O device.

Page 10: ITT

Security

10

Computer systems often store large amounts of information, some of which is highly sensitive and valuable to their users. Users can trust the system and rely on it only if the various resources and information of a computer system are protected against destruction and unauthorized access. The security module of an

operating system ensures this. This module also ensures that when several disjoint processes are being executed simultaneously, one process does not interfere with the others, or with the operating system itself. A state of computer "security" is the conceptual ideal, attained by the use of the three processes: threat prevention, detection, and response.

Page 11: ITT

Command Interpretation

11

A command interpreter is an interface of the operating system with the user. The main function of command interpreter is to get and execute the user specified command.There are two main advantages to separate command interpreter from the kernel:• If we, want to change the way the command interpreter looks, that

means, we want to change the interface of command interpreter, we are able to do that if the command interpreter is separate from the kernel. We cannot change the code of the kernel so we cannot modify the interface.

• If the command interpreter is a part of a kernel, it is possible for a malicious process to gain access to certain part of the kernel that it showed, to avoid this ugly scenario.