Operating Systems. Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between.

Slides:



Advertisements
Similar presentations
What is an Operating System?
Advertisements

OPERATING SYSTEM INTRODUCTION
Processes and Threads Chapter 3 and 4 Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
Threads, SMP, and Microkernels
CSC 360- Instructor: K. Wu Overview of Operating Systems.
Threads, SMP, and Microkernels Chapter 4. Process Resource ownership - process is allocated a virtual address space to hold the process image Scheduling/execution-
Lecture 1: History of Operating System
Figure 2.8 Compiler phases Compiling. Figure 2.9 Object module Linking.
Introduction to Operating Systems What is an operating system? Examples How do many programs run at the same time, with one processor?
1 CMOS Configuration Chip. 1 Jumpers 1 Software n The intelligence of the computer n Computer programs, or instructions to perform a specific task n.
Figure 1.1 Interaction between applications and the operating system.
Chapter 11 Operating Systems
Operating Systems CS208. What is Operating System? It is a program. It is the first piece of software to run after the system boots. It coordinates the.
1 Process Description and Control Chapter 3 = Why process? = What is a process? = How to represent processes? = How to control processes?
Introduction Operating Systems’ Concepts and Structure Lecture 1 ~ Spring, 2008 ~ Spring, 2008TUCN. Operating Systems. Lecture 1.
1 Threads Chapter 4 Reading: 4.1,4.4, Process Characteristics l Unit of resource ownership - process is allocated: n a virtual address space to.
Week 6 Operating Systems.
What is Concurrent Programming? Maram Bani Younes.
Computer System Architectures Computer System Software
Operating systems CHAPTER 7.
TYPES OF OPERATING SYSTEMS AMBARIN S.A BASEER
LOGO OPERATING SYSTEM Dalia AL-Dabbagh
Operating System Classification Single User, Multi-User, Simple Batch Processing, Multiprogramming, Multi tasking, Real Time Systems, Parallel Systems,
Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System.
 Introduction to Operating System Introduction to Operating System  Types Of An Operating System Types Of An Operating System  Single User Single User.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
Processes and OS basics. RHS – SOC 2 OS Basics An Operating System (OS) is essentially an abstraction of a computer As a user or programmer, I do not.
Real Time Operating Systems Lecture 10 David Andrews
المحاضرة الاولى Operating Systems. The general objectives of this decision explain the concepts and the importance of operating systems and development.
Processes and Threads Processes have two characteristics: – Resource ownership - process includes a virtual address space to hold the process image – Scheduling/execution.
Chapter 101 Multiprocessor and Real- Time Scheduling Chapter 10.
Dr. R R DOCSIT, Dr BAMU. Basic Java : Multi Threading 2 Objectives of This Session State what is Multithreading. Describe the life cycle of Thread.
Threads, SMP, and Microkernels Chapter 4. Process Resource ownership - process is allocated a virtual address space to hold the process image Scheduling/execution-
2002 Networking Operating Systems (CO32010) 1. Operating Systems 2. Processes and scheduling 3.
Operating System 2 Overview. OPERATING SYSTEM OBJECTIVES AND FUNCTIONS.
Scott Ferguson Section 1
1 Threads, SMP, and Microkernels Chapter Multithreading Operating system supports multiple threads of execution within a single process MS-DOS.
UNIX Unit 1- Architecture of Unix - By Pratima.
An operating system is the software that makes everything in the computer work together smoothly and efficiently. What is an Operating System?
Types of Operating Systems 1 Computer Engineering Department Distributed Systems Course Assoc. Prof. Dr. Ahmet Sayar Kocaeli University - Fall 2015.
1 Lecture 1: Computer System Structures We go over the aspects of computer architecture relevant to OS design  overview  input and output (I/O) organization.
Chapter 2 Process Management. 2 Objectives After finish this chapter, you will understand: the concept of a process. the process life cycle. process states.
1 Process Description and Control Chapter 3. 2 Process A program in execution An instance of a program running on a computer The entity that can be assigned.
Lally School of M&T Pindaro Demertzoglou 1 Computer Software.
CS4315A. Berrached:CMS:UHD1 Introduction to Operating Systems Chapter 1.
Operating Systems: Summary INF1060: Introduction to Operating Systems and Data Communication.
1.  System Characteristics  Features of Real-Time Systems  Implementing Real-Time Operating Systems  Real-Time CPU Scheduling  An Example: VxWorks5.x.
Background Computer System Architectures Computer System Software.
Copyright © Curt Hill More on Operating Systems Continuation of Introduction.
Page 1 2P13 Week 1. Page 2 Page 3 Page 4 Page 5.
Threads, SMP, and Microkernels Chapter 4. Processes and Threads Operating systems use processes for two purposes - Resource allocation and resource ownership.
An operating system for a large-scale computer that is used by many people at once is a very complex system. It contains many millions of lines of instructions.
Process Scheduling. Scheduling Strategies Scheduling strategies can broadly fall into two categories  Co-operative scheduling is where the currently.
1.3 Operating system services An operating system provide services to programs and to the users of the program. It provides an environment for the execution.
1 OPERATING SYSTEMS. 2 CONTENTS 1.What is an Operating System? 2.OS Functions 3.OS Services 4.Structure of OS 5.Evolution of OS.
Chapter 19: Real-Time Systems
Copyright ©: Nahrstedt, Angrave, Abdelzaher
Multi-Processing in High Performance Computer Architecture:
What is an Operating System?
Threads, SMP, and Microkernels
What is Concurrent Programming?
CPU SCHEDULING.
Lecture 4- Threads, SMP, and Microkernels
Outline Scheduling algorithms Multi-processor scheduling
Threads Chapter 4.
Multiprocessor and Real-Time Scheduling
What is Concurrent Programming?
Chapter 19: Real-Time Systems
Shortest-Job-First (SJR) Scheduling
Necessary Background for OS
Presentation transcript:

Operating Systems

Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between the user, the hardware, and the applications.

Types of Operating Systems Simple device control embedded on a ROM chip Complex Windows NT Unix, Etc.

Complex Operating Systems Consist of multiple programs The Kernel is the core of the operating systems.

Kernel The kernel is responsible for: Device control Memory management Scheduling Inter-process communication Processing of interrupts and exceptions.

Single vs. Multiple Processor Single Processor can only run one instruction at a time. It gives the appearance of multi- tasking with switching.

2 Types of Switching Co-Operative Switching Pre-Emptive Switching

Co-Operative Switching In co-operative switching the task which is currently running must voluntarily give up the processor for the next process to run.

Problem with Co-Operative Switching If first process “hangs up” and does not give up control the computer freezes. No other task can run.

Pre-Emptive Switching In pre-emptive switching the task that is currently running is forced to give up control after a certain period of time. If a task “hangs” it does not stop subsequent task from running.

Pre-Emptive Switching is “Better” than Co-Operative Switching

16-Bit vs. 32-bit 32-bit programs use pre-emptive switching. 16-bit program use co-operative switching and are more susceptible to “freezing”.

Context Switching The process of switching from one task to another is called “Context Switching”.

Scheduling Scheduling is the process of deciding which task should run next.

Time Slice The amount of time that a process runs before giving up control is called time slice or quantum period.

Co-Operative Processing In co-operative processing the processes are generally arranged such that as the top process is completed each task moves up one place.

Pre-Emptive Scheduling Pre-emptive scheduling uses a real- time clock, which generates interrupts at regular intervals. Each time an interrupt occurs the processor is switched to another task. Generally tasked are assigned a priority in pre-emptive scheduling.

Multiprocessor vs. Multiprocessing A multi-processor computer is a computer with more than one processor.

Categories of Multi- Processor Computers Shared memory multi-processor Distributed memory multi-processor

Shared Memory Multi- processor Shared memory multi-processors have multiply CPUs, and they all share the same memory. Communication between the processors is easy to implement, but care must be taken to synchronize memory access.

Distributed Memory Multi- Processors Also has multiple CPUs, but each CPU has its own memory. In distributed memory multi- processor memory synchronization is not a problem, but communication between the processors is often slow and complicated.

Related to Multi-Processors Networked Systems Distributed Systems

Networked Systems Networked systems consist of multiple computers, networked together. Users are aware of the different computers that make up the system.

Distributed Systems Distributed systems also consist of multiple computer but unlike the networked system the various computers are transparent to the user.

Operating System A computer is a set of resources for the movement, storage, and processing of data. The operating system is responsible for managing these resources scheduling the other programs and providing the user interface.