Operating Systems Lesson 3. Plan Multitasking ◦ Single task ◦ Cooperative multitasking ◦ Preemptive multitasking Windows ◦ Processes ◦ Memory management.

Slides:



Advertisements
Similar presentations
What is an Operating System?
Advertisements

CSC 360- Instructor: K. Wu Overview of Operating Systems.
Operating Systems High Level View Chapter 1,2. Who is the User? End Users Application Programmers System Programmers Administrators.
Review: Operating System Manages all system resources ALU Memory I/O Files Objectives: Security Efficiency Convenience.
Operating Systems BTEC IT Practitioners.
Chapter 8 Operating System Support
Operating Systems Lecture # 3. Recap Hardware Operating System Application System Call Trap Hardware Trap 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.
1 Operating Systems Ch An Overview. Architecture of Computer Hardware and Systems Software Irv Englander, John Wiley, Bare Bones Computer.
Processes April 5, 2000 Instructor: Gary Kimura Slides courtesy of Hank Levy.
Operating Systems (CSCI2413) Lecture 3 Processes phones off (please)
CS364 CH08 Operating System Support TECH Computer Science Operating System Overview Scheduling Memory Management Pentium II and PowerPC Memory Management.
Chapter 51 Threads Chapter 5. 2 Process Characteristics  Concept of Process has two facets.  A Process is: A Unit of resource ownership:  a virtual.
Week 6 Operating Systems.
Operating Systems.  Operating System Support Operating System Support  OS As User/Computer Interface OS As User/Computer Interface  OS As Resource.
Operating System. Architecture of Computer System Hardware Operating System (OS) Programming Language (e.g. PASCAL) Application Programs (e.g. WORD, EXCEL)
Chapter 4 Processor Management
 Introduction to Operating System Introduction to Operating System  Types Of An Operating System Types Of An Operating System  Single User Single User.
CS 1308 Computer Literacy and the Internet. Introduction  Von Neumann computer  “Naked machine”  Hardware without any helpful user-oriented features.
Software GCSE COMPUTING.
Implementing Processes and Process Management Brian Bershad.
Contact Information Office: 225 Neville Hall Office Hours: Monday and Wednesday 12:00-1:00 and by appointment.
Chapter 41 Processes Chapter 4. 2 Processes  Multiprogramming operating systems are built around the concept of process (also called task).  A process.
What is an Operating System? The OS is a program – Permit easy access, control hardware, communicate between user and software, user and hardware, software.
Processes and Threads CS550 Operating Systems. Processes and Threads These exist only at execution time They have fast state changes -> in memory and.
Operating System Basics section 6A. This lesson includes the following sections: Running Programs Managing Files Managing Hardware Utility Software.
1 RTOS Design Some of the content of this set of slides is taken from the documentation existing on the FreeRTOS website
1 Confidential Enterprise Solutions Group Process and Threads.
E X C E E D I N G E X P E C T A T I O N S OP SYS Linux System Administration Dr. Hoganson Kennesaw State University Operating Systems Functions of an operating.
Multiprogramming. Readings r Silberschatz, Galvin, Gagne, “Operating System Concepts”, 8 th edition: Chapter 3.1, 3.2.
Learning Objective The students should be able to: a. state the definition of software b. state the usage of software c. list different types of software.
C o n f i d e n t i a l 1 Course: BCA Semester: III Subject Code : BC 0042 Subject Name: Operating Systems Unit number : 1 Unit Title: Overview of Operating.
Processes and Process Control 1. Processes and Process Control 2. Definitions of a Process 3. Systems state vs. Process State 4. A 2 State Process Model.
Operating Systems Lesson Objective: Understanding the functions of an operating system. Learning Outcome: Answer some basic questions on operating systems.
Basic Systems and Software. Were we left off Computers are programmable (formal) machines. Digital information is stored as a series of two states (1.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 3: Process-Concept.
We will focus on operating system concepts What does it do? How is it implemented? Apply to Windows, Linux, Unix, Solaris, Mac OS X. Will discuss differences.
Concurrency & Context Switching Process Control Block What's in it and why? How is it used? Who sees it? 5 State Process Model State Labels. Causes of.
Concurrency, Processes, and System calls Benefits and issues of concurrency The basic concept of process System calls.
Computer Software Operating Systems – Programs. Computer Language - Review We learnt that computers are made up of millions of tiny switches that can.
1 3 Computing System Fundamentals 3.3 Computer Systems.
Typical Computer System. What's an O.S. and What Does it Do? Software extensions to Hardware Provides for efficient control of and access to system facilities.
Chapter 2 Process Management. 2 Objectives After finish this chapter, you will understand: the concept of a process. the process life cycle. process states.
Operating Systems. Categories of Software System Software –Operating Systems (OS) –Language Translators –Utility Programs Application Software.
Operating Systems: Summary INF1060: Introduction to Operating Systems and Data Communication.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 4: Processes Process Concept Process Scheduling Types of shedulars Process.
Interrupts and Exception Handling. Execution We are quite aware of the Fetch, Execute process of the control unit of the CPU –Fetch and instruction as.
Copyright © Curt Hill More on Operating Systems Continuation of Introduction.
1 Module 3: Processes Reading: Chapter Next Module: –Inter-process Communication –Process Scheduling –Reading: Chapter 4.5, 6.1 – 6.3.
Multiprogramming. Readings r Chapter 2.1 of the textbook.
Operating Systems & System Software
Processes and threads.
Lesson Objectives Aims Key Words Interrupt, Buffer, Priority, Stack
Lecture Topics: 11/1 Processes Process Management
Intro to Processes CSSE 332 Operating Systems
Process Virtualization. Process Process is a program that has initiated its execution. A program is a passive entity; whereas a process is an active entity.
OPERATING SYSTEMS.
Processor Management Damian Gordon.
Chapter 15, Exploring the Digital Domain
Operating Systems.
Processes Hank Levy 1.
Processes and Process Management
EE 472 – Embedded Systems Dr. Shwetak Patel.
PROCESSES & THREADS ADINA-CLAUDIA STOICA.
CS510 Operating System Foundations
Software - Operating Systems
Processes and Process Table
Processes Hank Levy 1.
Chapter 3: Processes Process Concept Process Scheduling
Processor Management Damian Gordon.
Presentation transcript:

Operating Systems Lesson 3

Plan Multitasking ◦ Single task ◦ Cooperative multitasking ◦ Preemptive multitasking Windows ◦ Processes ◦ Memory management teaser Beeper Sample

Multitasking: Singe-task system DOS Running program gets full control over computer resources Next program(task) couldn’t start before previous ended Not efficient (CPU is idle while program is printing or waits for keyboard input

Cooperative Multitasking Windows 3.11 Program may voluntary give up CPU time for other programs(e.g. waiting for printing job to finish) User may select/activate program to run (pause editor and look into spreadsheet How a program know when to yield CPU to other program and when (if ever) will get it back?

Multitasking: Some Requirements Programmer shouldn’t write a program aware of other programs. In order to switch between programs (tasks) one should be able to freeze the state of the paused program (e.g. current instruction, register and memory state) and resume its afterwards Task shouldn’t have access to private memory of other tasks

Windows: Preemptive multitasking OS decides when to run each task and for how long Each task gets fare share of CPU time according to task priority Windows manages each task states and guard its private memory and manage shared resources (disk) Task may enter “waitable/blocking state” (e.g. wait for other task to complete) so OS won’t allocate any CPU time at all

Windows: Task==Process A Windows object (has a handle) An instance of a program running on a computer Two opened notepads is two processes Several Internet Explorer windows may be supported by single process

Process properties Identifier ◦ 0x0034FE12 State ◦ Running, waiting etc Priority ◦ Low, high Program counter ◦ Address in memory of next instruction to execute Memory pointers ◦ Location of process memory in RAM Context data ◦ Registers Accounting information ◦ CPU time used till now