Beruflich Dokumente
Kultur Dokumente
CONTENTS
Introduction
WHAT IS OS?
Its a set of software programs for the effective and easy use of the machine. A set of system programs which can control and automate hardware as well as software activity. Combination of system software and firmware. An operating system is a program which helps to execute users program effectively on a computer system. Operating system acts like an mediator between user of a computer and computer hardware.
FEATURES OF OS
An operating system performs basic tasks such as
controlling and allocating memory prioritizing system requests controlling input and output devices facilitating networking managing file systems
This structure consists of 4 layers: 1. Hardware Hardware consists of CPU, Main memory, I/O Devices, etc,
2.
Operating System It includes programs like process management routines, memory management routines, I/O control routines, file management routines.
3.
System and Utility programs This layer consists of compilers, assemblers, linkers, decompression utilities etc. Application programs This is dependent on users need. Ex. Railway reservation system, Bank database management etc.,
4.
OPERATIONAL VIEW:
Lets briefly look at the underlying principle of operation of a computer system. Current systems are based on The Von-Neumann principle. The principle states that a program is initially stored in memory and executed by fetching an instruction at a time. The basic cycle of operation is 1.Fetch an instruction (Fetch) 2.Interpret the instruction (Decode) 3.Execute the instruction (Execute) Modern systems allow multiple users to use a computer system. Even on a stand alone PC, there may be multiple actions running simultaneously
For instance, we have a mail program receiving mails and a clock to display time while we may be engaged in browsing a word process. In other words, OS needs to schedule the processor amongst all the application simultaneously without giving an impression that the processor time is being divided and scheduled as per an application.
NEED FOR AN OS
Processor management - Scheduling Fairness Non-blocking behavior Priorities Memory management Virtual Vs Physical memory Protection of competing/conurrent programs Storage management File system Access to external storage media Device management Hiding of hardware dependencies Management of concurrent accesses Batch Processing Definition of an execution order; throughput maximization
App
App
User Mode Kernel Mode
System services
OS procedures
Hardware
12
LAYERED OS
Application Program
Application Program
Application Program
Processor Scheduling
Hardware
13
Kernel implements: Scheduling Memory Management Interprocess communication (IPC) User-mode servers
request
Microkernel
reply
Hardware
14