CS149D Elements of Computer Science

Slides:



Advertisements
Similar presentations
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
Advertisements

Processes Management.
OS Fall ’ 02 Introduction Operating Systems Fall 2002.
1 CS 333 Introduction to Operating Systems Class 2 – OS-Related Hardware & Software The Process Concept Jonathan Walpole Computer Science Portland State.
OS Spring’03 Introduction Operating Systems Spring 2003.
Computer Organization and Architecture
1 Operating Systems Ch An Overview. Architecture of Computer Hardware and Systems Software Irv Englander, John Wiley, Bare Bones Computer.
Operating system Part three Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas Faculty of Information.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
Part two. 3.2 operating system architecture  Software have two categories  Application software  System software  Application software: consists of.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
Introduction to Operating Systems
Chapter 3 Operating Systems Introduction to CS 1 st Semester, 2015 Sanghyun Park.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Eleventh Edition.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
Chapter 5 Operating System Support. Outline Operating system - Objective and function - types of OS Scheduling - Long term scheduling - Medium term scheduling.
Recall: Three I/O Methods Synchronous: Wait for I/O operation to complete. Asynchronous: Post I/O request and switch to other work. DMA (Direct Memory.
Computer Architecture and Operating Systems CS 3230: Operating System Section Lecture OS-1 Process Concepts Department of Computer Science and Software.
Lecture 3 Process Concepts. What is a Process? A process is the dynamic execution context of an executing program. Several processes may run concurrently,
Lecture 8: 9/19/2002CS149D Fall CS149D Elements of Computer Science Ayman Abdel-Hamid Department of Computer Science Old Dominion University Lecture.
1 Sec (3.2) Operating System Architecture OS. 2 Software dividing into two categories: 1. Application software 2. System Software  Operating System 
Chapter 3 Operating Systems © 2007 Pearson Addison-Wesley. All rights reserved.
Operating Systems © 2007 Pearson Addison-Wesley. All rights reserved.
Chapter 3: Operating Systems
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.
Processes, Threads, and Process States. Programs and Processes  Program: an executable file (before/after compilation)  Process: an instance of a program.
Assoc. Prof. Dr. Ahmet Turan ÖZCERİT.  What Operating Systems Do  Computer-System Organization  Computer-System Architecture  Operating-System Structure.
CS 390 Unix Programming Environment
Chapter 3 Operating Systems. © 2005 Pearson Addison-Wesley. All rights reserved 3-2 Chapter 3 Operating Systems 3.1 The Evolution of Operating Systems.
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 Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
CT101: Computing Systems Introduction to Operating Systems.
Operating System Architecture
Memory Management.
Processes and threads.
Resource Management IB Computer Science.
Process concept.
Chapter 3: Operating Systems
Process Management Process Concept Why only the global variables?
Operating Systems (CS 340 D)
Sujata Ray Dey Maheshtala College Computer Science Department
Structure of Processes
OPERATING SYSTEMS CS3502 Fall 2017
William Stallings Computer Organization and Architecture
Intro to Processes CSSE 332 Operating Systems
IS310 Hardware & Network Infrastructure Ronny L
CSI 400/500 Operating Systems Spring 2009
Shell & Kernel Concepts in Operating System
Operating System Architecture OS
Chapter 15, Exploring the Digital Domain
CS149D Elements of Computer Science
OS Architecture.
Process & its States Lecture 5.
Mid Term review CSC345.
Operating Systems.
CGS 3763 Operating Systems Concepts Spring 2013
Sujata Ray Dey Maheshtala College Computer Science Department
Operating Systems Lecture 3.
Chapter 3 Operating Systems
Chapter 3: Operating Systems
Chapter 3: Operating Systems
Introduction to Operating Systems
CS149D Elements of Computer Science
Chapter 3: Operating Systems
Chapter 3: Operating Systems Computer Science: An Overview
Chapter 3: Operating Systems
Chapter 3: Operating Systems
Chapter 1: Introduction CSS503 Systems Programming
Presentation transcript:

CS149D Elements of Computer Science Ayman Abdel-Hamid Department of Computer Science Old Dominion University Lecture 9: 9/24/2002 Lecture 9: 9/24/2002 CS149D Fall 2002

Outline File Manager Memory Manager and Virtual Memory Coordinating a machine activities (The Process concept) Should cover sections 3.2 and 3.3 Lecture 9: 9/24/2002 CS149D Fall 2002

Kernel Components revisited File Manager Coordinate use of machine’s mass storage Device drivers Control operation of machine’s peripheral devices (printer, disk drive, monitor, …) Memory Manager Coordinate machine’s use of main memory Scheduler Which activity is executed next Dispatcher Controls allocation of time slices to activities Lecture 9: 9/24/2002 CS149D Fall 2002

File Manager Keep records of files stored in secondary storage Location of each file Which users are allowed to access which files Available space in secondary storage Group files into a bundle called a directory or folder A directory may contain other directories called subdirectories A chain of directories within directories is called a directory path Provides means to access files (open and manipulate files) Lecture 9: 9/24/2002 CS149D Fall 2002

Memory Manager One task at a time Load, execute, replace by program for performing next task Multi-user or Multi-tasking environments Many programs and blocks of data reside in main memory Allocate areas of memory for each program Fulfill memory requirements for programs Keep track of memory areas no longer occupied Lecture 9: 9/24/2002 CS149D Fall 2002

Virtual Memory When total main memory required exceeds actually available? Memory manager creates illusion of additional memory space by swapping programs and data back and forth between main memory and secondary storage Illusionary memory space called Virtual Memory Memory requirements are allocated in units called pages ( page size < 4 KB) Main memory is 64 MB, but only 32 MB is available? Memory manager stores contents of pages in secondary storage When a page in secondary storage is needed for access, load it in main memory If no space in main memory, swap some other page no longer required to secondary storage Lecture 9: 9/24/2002 CS149D Fall 2002

Concept of a Process Distinction between a program and the activity of executing a program Program  static set of directions Activity of executing a program  dynamic activity  known as a process Process state Current position in the program being executed (value of PC) Values in other registers and associated memory cells A single program can be associated with more than one process In a time-sharing computer, processes compete for time slices Operating System coordinates among processes Lecture 9: 9/24/2002 CS149D Fall 2002

Process Administration Process coordination handled by scheduler and dispatcher within OS kernel Scheduler maintains a record of processes present in computer Maintains a block of information in main memory called process table When a new task is assigned to machine, creates a process for that task by placing a new entry in the process table Memory area assigned to process (from memory manager) Process priority Process status (ready, waiting for some event (I/O for example)) Dispatcher Ensures that scheduled processes are actually executed Divide time into time slices (or quantum) Process switching Lecture 9: 9/24/2002 CS149D Fall 2002

Process Administration At interrupt CPU completes current machine cycle, saves current process state, and transfers control to an interrupt handler Interrupt handler is part of the dispatcher Dispatcher selects a ready process from the process table (highest priority) Restart timer circuit for the next interrupt Allow selected process to begin execution Copyright © 2003 Pearson Education, Inc. Sometimes, the process time slice is terminated before the timer expires For example when executing I/O Lecture 9: 9/24/2002 CS149D Fall 2002