operating system

39
Operating System Fundamentals Mr. Gaurav Meena Mr. Gaurav Meena Assistant Professor Department of Computer Sciences Central University of Rajasthan , Ajmer Introduction and Concepts

Upload: gaurav-meena

Post on 21-Jun-2015

222 views

Category:

Education


0 download

DESCRIPTION

Operating System Fundamentals

TRANSCRIPT

Page 1: operating system

Operating System Fundamentals

Mr. Gaurav MeenaMr. Gaurav MeenaAssistant Professor

Department of Computer Sciences

Central University of Rajasthan , Ajmer

Introduction and Concepts

Page 2: operating system

Outline

What is an Operating System? Types of Computer Systems Simple Batch Systems Multi-programmed Batched Systems Time-Sharing Systems Personal-Computer Systems Parallel Systems Distributed Systems Real-Time Systems Handheld Systems

Page 3: operating system

What is an Operating System?

A software that controls the hardware.

Processors, storage, input/output devices, communication devices and data.

A software that manages the hardware.

A software that acts as a resources allocator.

Page 4: operating system

How Can We Define Operating System?

Operating System (OS) is a program that controls the execution of applicationprograms. It is also defined as being the mean through which controlling of allocation and usage of hardware resources and coordinating of all software activities within a computer is done.

Page 5: operating system

Where Can an OS Fit?

Page 6: operating system

Operating System Objectives Convenience: Makes the computer more convenient to use.

Ease of Communication: Between Computer and user through a friendly

user interface. Among system components.

Abstraction: Hardware-independent programming model.

Efficiency: Allows computer system resources to be used in

an efficient manner.

Page 7: operating system

Operating System Objectives (cont’d)

Monitoring and Alerting: Monitors and alerts failures and problems.

Ability to Evolve: Permit effective development, testing, and introduction of

new system functions without interfering with the services. Protection:

A layer of security is to be added to ensure that a certain level of security is maintained to protect user’s data.

Increasing performance: Maximizing the throughput and Minimizing time needed to

execute command.

Page 8: operating system

Services Provided by the Operating System Program development: Such as editors and

debuggers. Program execution:

Load program and data, initialize environment. Access to I/O devices:

Attempt to read from and write to the ports and units. Controlled access to data: Access protection. System access: User authentication.

Page 9: operating system

Services Provided by the Operating System (cont’d) Error detection and response: In case of error occurring, an error message

should be displayed. Internal and external hardware errors: Memory error. Device failure.

Software errors: Arithmetic overflow. Access forbidden memory locations.

Page 10: operating system

Services Provided by the Operating System (cont’d) Accounting: Collect statistics. Monitor performance. Is used to anticipate future enhancements? Is used for billing users?

Page 11: operating system

Functions of an Operating System on a Network

1. Sharing H/W among users.2. Allowing users to share data.3. Preventing users from interfering with one

another.4. Scheduling resources among users.5. Organizing data for secure and rapid

access.6. Handling network communications.

Page 12: operating system

Components of Computer System Input devices Processing devices (Central Processing Unit) Output devices Storage devices Applications software

Word Processing – Spreadsheet - Database System software

Operating System - Utilities Users, or end users, are the people in the computing environment

who need the output that computer systems produce. Programmers are the people whose job it is to write programs to

supply this information.

Page 13: operating system

Layers of Computer System

Page 14: operating system
Page 15: operating system

Computer-System Operation I/O devices and the CPU can

execute concurrently. Each device controller is

responsible of a particular device type.

Each device controller has a local buffer (memory).

CPU moves data from/to main memory to/from local buffers I/O is from the device to local buffer of controller.

Page 16: operating system

Storage-Device Hierarchy

Storage systems organized in hierarchy. Speed Cost Volatility

Page 17: operating system

What is a Kernel?

Module Kernel is responsible for:

• Memory allocation.

• Garbage collection

• Object finalization

• Module termination

• Interfacing to the underlying operating system, and clock functions

Page 18: operating system

Types of Computer Systems

Simple Batch Systems Multi-programmed Batched Systems Time-Sharing Systems Personal-Computer Systems Parallel Systems Distributed Systems Real-Time Systems Handheld systems

Page 19: operating system

Simple Batch System

Runs only one job at a time.

Smoothed transition between jobs to get maximum utilization.

Programs/data submitted in groups or batches.

Page 20: operating system

Multi-programmed Batch System

Uses job scheduling to increase resources utilization.

Stores more than one program in memory. Based on the fact that any one job rarely

utilizes all computer resources. When one job is waiting for an I/O, other can

use CPU and/or any other I/O.

Page 21: operating system

Time Sharing System

Uses time sharing to switch between multiple jobs.

Interactive. Provides a low response time to users.

Developed to large numbers of simultaneously interactive users.

A program shares in time only if it exists in memory.

Page 22: operating system

Personal System (Desktop)

Every user has his own memory, processors, and I/O devices.

Became possible after investing micro-processors.

Computing may be distributed to the sites rather than central place.

Data may be shared among users through networks.

Page 23: operating system

Distributed System

Computers that communicate using a network: WAN (Wide area network) or LAN (Local area network), i.e. independent computers that works as a single system.

Client-Server: A client is a computer that needs service. A server is a S/W or a H/W that do a single service (Printing, graphics, DB, e-mail).

Peer-To-Peer: Decentralized computers provide services to peers.

Incremental growth.

Page 24: operating system

Parallel System

A computer contains two or more CPUs that share a common bus.

A job Should be split to discrete (independent) small jobs.

Exponential speed up in computation needs exponential increase in the number of processors.

Page 25: operating system

Real-time System

Often used as a control device in a dedicated application such as: a. Controlling scientific experiments, b. Medical imaging systems, c. Industrial control systems.

Well-defined fixed-time constraints. Real-time system may be either hard or soft

system

Page 26: operating system

Real-time System (cont’d)

Hard real-time system: Secondary storage limited or absent Data stored in short term memory. Conflicts with time-sharing systems. Not supported by general purpose OS.

Soft real-time system: Useful in applications (multimedia, virtual reality). Require Advanced OS features.

Page 27: operating system

Handheld Systems

Personal Digital Assistants (PDAs) Cellular telephones Issues: Limited memory Slow processors Small display screens

Page 28: operating system

Computer Categories Computers are generally classified in one of four

categories: small, or “microcomputers”; medium-sized, or “midrange computers”; large, or “mainframecomputers”; and super-large, or “supercomputers.”An emerging new category is “mobile devices,” asdiscussed next.

In general, the larger the computer, the greater itsprocessing power. For example, big computers canprocess data at faster speeds and can perform morecomplicated types of processing than can smallcomputers. Big computers can also accommodatelarger, more powerful support devices. **

Page 29: operating system

Computer Categories

Mobile devices

Microcomputers

Midrange computers

Mainframe computers

Supercomputers

Page 30: operating system

Mobile DevicesA mobile device is loosely defined as a very small computing device based on a wireless phone or pager. Such devices usually offer limited Internet access in addition to their regular functions, such as placing phone calls and sending and receiving pages or messages.

Page 31: operating system

Personal ComputersA technological breakthrough in the early 1970s

made it possible to produce an entire CPU on asingle silicon chip smaller than a dime. These“computers-on-a-chip,” or microprocessors, can bemass-produced at a very low cost.

Microprocessors also made it possible to build inexpensive computer systems small enough to fit on a desk or your lap. The small computers at the heart of these systems have come to be called microcomputers or personal computers (PCs).

Page 32: operating system

Personal Computers, cont’d. Although most microcomputers designed for home or

business use are desktop computers, smaller PCs areavailable. Portable PCs include notebook, tablet,handheld, and pocket computers.

PCs designed for network use only are referred to as network computers or thin clients. PCs or devices designed for Internet access only are called Internet appliances.

Most PC users choose between two major computer platforms when they buy a computer—PC compatiblesand Macintosh computers. Often, people refer to PC-compatible computers as the Windows platform or as IBM-compatible PCs.

Page 33: operating system
Page 34: operating system

Personal Computers, cont’d.

PC compatible—a personal computer based on Intel microcomputer or compatible CPUs

Macintosh—a type of personal computer manufactured by Apple

Page 35: operating system
Page 36: operating system

Midrange ComputersMidrange computers (or minicomputers) are regarded asmedium-sized computers. Most of them fall betweenmicrocomputers and mainframes in their processingpower.

A small or medium-sizedcompany, for example, mayfind a microcomputer systemjust too small or too slow tohandle its currentvolume of work.

Page 37: operating system

Mainframes Mainstay of almost all large organizations

Specialize in high-volume processing of business transactions

Mainframes often operate 24 hours a day, serving dozensof users on terminalsduring regular businesshours and processing big jobssuch as payroll and billing lateat night.

Page 38: operating system

SupercomputersSome organizations, such as large scientific researchlaboratories, have extraordinary demands for processingpower.

To meet applications needs such as very fast speeds and extreme degrees of accuracy, a few vendors offer very powerful computers, called supercomputers.

Many supercomputers todayare created by linking togethermultiple PCs or microprocessorchips.

Page 39: operating system

Computer Categories vs. Systems

Mobile devices: Handheld systems.

Microcomputers: Desktop systems.

Midrange computers: Desktop & Real-time systems.

Mainframe computers: Batch & Time-share (Hybrid systems).

Supercomputers: Parallel & distributed systems.