22
Operating Systems Structure Mr. S. V. Viraktamath SDMCET, Dharwad [email protected] 9/15/2013 1 SDM SVV OS

Operating Systems Structure

  • Upload
    vtu

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Operating Systems Structure

Mr. S. V. Viraktamath

SDMCET, Dharwad

[email protected]

9/15/2013 1SDM SVV OS

Introduction

• An OS may be viewed from several vantage

points

• 3 view points User, Programmers and OS

designer.

9/15/2013 SDM SVV OS 2

System Components

• Most of the systems share the goal of

supporting the system components listed:

– Process Management

– Main Memory management

– File management

– I/O system management

– Secondary storage management

– Protection system

– Command interpreter system

9/15/2013 3SDM SVV OS

• Process Management

– Process?, Resources needed for process

– Program is not a process

– Program is passive and process is active entity

• 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

9/15/2013 SDM SVV OS 4

• Main Memory management

–Mem large array of words/bytes

–Each word/byte has a its own address

• Keeping track of which parts of memory are

currently being used and by whom

• Deciding which processes are to be loaded into

memory when memory space becomes available

• Allocating and de-allocating memory space as

needed

9/15/2013 SDM SVV OS 5

• File management

– It is a visible component of OS

– File is collection of related information defined by

its creator.

– OS responsibility

• Creating and deleting files

• Creating and deleting directories

• Mapping files onto secondary storage

• Backing up files on stable (nonvolatile) storage media

9/15/2013 SDM SVV OS 6

• Secondary storage Management

– To execute program it should be in main memory

– Most of the system uses disks as storage medium

– Hence proper management of disc storage is imp

– Free-space management

– Storage allocation

– Disk scheduling

9/15/2013 SDM SVV OS 7

• Protection System

– Concurrent execution of multiple processes

– Processes must be protected

9/15/2013 SDM SVV OS 8

Operating system services

• OS provides services to programs & to the users of those programs.

– Program Execution

– I/O Operation

– File system Manipulation

– Communication

– Error detection

– Resource allocation

– Accounting

– Protection

9/15/2013 SDM SVV OS 9

System Calls

• System calls provide the interface between a process and the OS.

• How system calls are used Ex.

• Read a data from a file copy them to another file.

– Need names of two files.

– Can read from user by using system calls

– Create a file

– Read a file

– Write a file

9/15/2013 SDM SVV OS 10

Types of system calls

• Process control

– end, abort

– load, execute

– create process, terminate process

– get process attributes, set process attributes

– wait for time

– wait event, signal event

– allocate and free memory

9/15/2013 SDM SVV OS 11

• File management

– create file, delete file

– open, close

– read, write, reposition

– get file attributes, set file attributes

9/15/2013 SDM SVV OS 12

• Device management

– request device, release device

– read, write, reposition

– get device attributes, set device attributes

– logically attach or detach devices

9/15/2013 SDM SVV OS 13

• Communications

– create, delete communication connection

– send, receive messages

– transfer status information

– attach or detach remote devices

9/15/2013 SDM SVV OS 14

Virtual Machines

• Virtual?

• Virtual Memory

9/15/2013 SDM SVV OS 15

9/15/2013 SDM SVV OS 16

9/15/2013 SDM SVV OS 17

9/15/2013 SDM SVV OS 18

9/15/2013 SDM SVV OS 19

9/15/2013 SDM SVV OS 20

9/15/2013 SDM SVV OS 21

9/15/2013 SDM SVV OS 22