Docsity

Operating Systems: An Introduction to Their Definition, History, Services, and Structure, Slides of Operating Systems

Partial preview of the text

Download Operating Systems: An Introduction to Their Definition, History, Services, and Structure and more Slides Operating Systems in PDF only on Docsity!

SWENG

Operating System

Software Engineering Department

AASTU

October 2018

Chapter One

Introduction

Outline

Definition of an Operating System

History of Operating Systems

Operating System Services

Types of Operating Systems

Operating System Structure

What is an Operating System?

A program that acts as an intermediary between a user of a computer and the computer hardware.

 It is an extended machine

 (^) Hides the messy details which must be performed  (^) Presents user with a virtual machine, easier to use

 It is a resource manager

 (^) Each program gets time with the resource  (^) Each program gets space on the resource

Computer System Components(cont’d)

Operating System Objectives

 (^) Convenience – Top Down View – Virtual Machine  (^) Extending the real hardware and acting as a Virtual Machine  (^) Hiding the truth about the hardware from the user  (^) Providing the user a convenient interface which is easier to program  (^) Efficiency – Bottom Up View – Resource Manager  (^) Providing an orderly and controlled allocation of resources  (^) Improving resource utilization  (^) Ability to Evolve  (^) Permit effective development, testing, and introduction of new system functions without interfering with existing services  (^) Protection  (^) allow only authorised access to data, computation, services, etc.

Operating System Services

 A) Process Management

 (^) A process is a program in execution. A process needs certain resources, including CPU time, memory, files, and I/O devices, to accomplish its task.  (^) Process is active entity, while program is passive entity  (^) The operating system is responsible for the following activities in connection with process management.  (^) Process creation and deletion.  (^) process suspension and resumption.  (^) Provision of mechanisms for:  (^) process synchronization  (^) process communication

Operating System Services(cont’d)

 (^) D) Secondary-Storage Management  (^) The operating system is responsible for the following activities in connection with disk management:  (^) Free space management  (^) Storage allocation  (^) Disk scheduling  (^) E) I/O Management  (^) since user programs cannot execute I/O operations directly, the operating system must provide some means to perform I/O.  (^) F) Protection System  (^) Protection refers to a mechanism for controlling access by programs, processes, or users to both system and user resources.  (^) The protection mechanism must:  (^) distinguish between authorized and unauthorized usage.  (^) specify the controls to be imposed.  (^) provide a means of enforcement.

A View of Operating System Services

System Calls(cont’d)

 (^) Mode of operation:  (^) User mode: when the computer system is executing on behalf of a user application.  (^) Kernel/privileged: OS gains control of the computer.  (^) At system boot time, the hardware starts in kernel mode. The operating system is then loaded and starts user applications in user mode.  (^) Dual mode provides protection. How?  (^) The hardware allows privileged instructions- instructions that causes harm (E.g. instruction to switch to kernel mode, I/O control, timer management) to be executed only in kernel mode.

System Calls(cont’d)

 (^) System calls mostly accessed by programs via a high-level Application Programming Interface (API) rather than direct system call use  (^) Three most common APIs available to application programmers are:  (^) Windows API for Windows,  (^) POSIX API(for UNIX, Linux, and Mac OS X), and  (^) Java API for the Java virtual machine  (^) API – System Call – OS Relationship

Examples of Windows and Unix

System Calls

Operating System Structure

 (^) General-purpose OS is very large program, therefore need to be structured well.  (^) Partition the task into small components, or modules.  (^) Various ways:  (^) Simple structure (monolithic)  (^) Layered  (^) Microkernel  (^) Module  (^) Hybrid