• No results found

ICS-5.pdf

N/A
N/A
Protected

Academic year: 2020

Share "ICS-5.pdf"

Copied!
11
0
0

Loading.... (view fulltext now)

Full text

(1)

Lect 5: Introduction to Operating system

Dr. Sakshi Babbar

Associate Professor

Department of Computer Science & Engineering, GD Goenka University, Gurgaon

(2)

Outline

1. Introduction to Operating System 2. Two views of Operating system

3. Operating system services

(3)

Introduction to Operating system

An Operating System, or OS, is low-level software that enables a user and higher-level application software to interact with a computers hardware and the data and other programs stored on the computer. A computer system has many resources (hardware and software), which may be require to complete a task. The commonly required resources are input/output devices, memory, file storage space, CPU etc. The operating system acts as a manager of the above resources and allocates them to specific programs and users as necessary for their task. Therefore operating system is the resource manager i.e. it can manage the resource of a computer system internally. The resources are processor, memory, files, and I/O devices.

(4)

Two views of Operating system

1. User View

The user view of the computer refers to the interface being used. Such systems are designed for one user to monopolize its resources, to maximize the work that the user is performing. In these cases, the operating system is designed mostly for ease of use, with some attention paid to

performance, and none paid to resource utilization 2. System View

(5)

Operating system Mangement task

1. Process management

2. Memory management

3. File system manipulation

4. Resource management

5. User interface

(6)

Process management

A process is a program in execution. For example, when we write a program in C or C++ and compile it, compiler creates a binary code. The original code and Binary code, both are programs. When we actually run the binary code, it becomes a process. A process is an active entity as oppose to program which considered to be a passive entity. A single program can create many processes when run multiple times, for example when we open an exe or binary file multiple times, many instances begin (many processes are created). Process management is the process by which operating systems manage processes. Each process goes through following five states.

1. New - The process is in the stage of being created.

2. Ready - The process has all the resources available that it needs to run, but the CPU is not currently working on this process’s instructions.

3. Running - The CPU is working on this process’s instructions.

4. Waiting - The process cannot run at the moment, because it is waiting for some resource to become available or for some event to occur. For example the process may be waiting for keyboard input, disk access request, inter-process messages, a timer to go off, or a child process to finish.

(7)
(8)

Memory management

Memory management is the functionality of an operating system which handles or manages primary memory and moves processes back and forth between main memory and disk during execution. Memory management keeps track of each and every memory location, regardless of either it is allocated to some process or it is free. It checks how much memory is to be allocated to processes. It decides which process will get memory at what time. It tracks whenever some memory gets freed or unallocated and correspondingly it updates the status.

File system manipulation

A file represents a collection of related information. Computers can store files on the disk (secondary storage), for long-term storage purpose. Examples of storage media include magnetic tape, magnetic disk and optical disk drives like CD, DVD. Each of these media has its own properties like speed, capacity, data transfer rate and data access methods.

(9)

Resource management

OS manages resources such as main memory, CPU cycles, I/O and files storage that are to be allocated to each user or job.

User interface

OS allows us to communicate with your computer.

I/O operations

An I/O subsystem comprises of I/O devices and their corresponding driver software. Drivers hide the peculiarities of specific hardware devices from the users. Operating System manages the communication between user and device drivers.

(10)

Types of Operating system

1. Simple Batch System

In this type of system, there is no direct interaction between user and the computer. The user has to submit a job (written on cards or tape) to a computer operator. Then computer operator places a batch of several jobs on an input device. Jobs are batched together by type of languages and requirement. Then a special program, the monitor, manages the execution of each program in the batch. The monitor is always in the main memory and available for execution.

2. Multiprogramming Batch System

In this the operating system, picks and begins to execute one job from memory. Once this job needs an I/O operation operating system switches to another job (CPU and OS always busy). Jobs in the memory are always less than the number of jobs on disk(Job Pool). If several jobs are ready to run at the same time, then system chooses which one to run (CPU Scheduling). In Non-multiprogrammed system, there are moments when CPU sits idle and does not do any work. In Multiprogramming system, CPU will never be idle and keeps on processing.

(11)

4. Distributed Operating System

The motivation behind developing distributed operating systems is the availability of powerful and inexpensive microprocessors and advances in communication technology. here are multiple systems involved, user at one site can utilize the resources of systems at other sites for

References

Related documents

Vocational Rehabilitation programs rarely consider collaborating with community economic development activities, and rural community economic development practitioners rarely think

Third, to assess the possible impact of investment and trade liberalisation between certain countries upon FDI going to excluded countries we estimate gravity equations using data

The experts from the Animal Husbandry Department, Veterinary College and Dairy Development Department were utilized to demonstrate and explain the protocol of

The Executive Director (ATM), Airports Authority of India, Rajiv Gandhi Bhawan, New Delhi-110003.. b) The Document Controlling Authority shall retain the Master Copy of

Study, medita- tion, work,

c) There is a written plan that includes the reason for use of the monitor and specific details as to when the monitor will be turned on and off. This plan must be documented in the

• Disabled employees would be more likely to declare a disability if they felt that managers understood disability issues, the support that was available and how to access

Two way analysis of variance applied in between initial feed mixture of effluent of cane sugar and distillery industries with different combinations of animal dung and final