COMP1214 Systems & Platforms: Operating Systems Concepts Dr. Yvonne Howard – Rikki Prince – 1.

Slides:



Advertisements
Similar presentations
Threads Chapter 4 Threads are a subdivision of processes
Advertisements

Chapter 13: I/O Systems I/O Hardware Application I/O Interface
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
Business Transaction Management Software for Application Coordination 1 Business Processes and Coordination.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
0 - 0.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Addition Facts
So far Binary numbers Logic gates Digital circuits process data using gates – Half and full adder Data storage – Electronic memory – Magnetic memory –
OPERATING SYSTEMS Lecturer: Szabolcs Mikulas Office: B38B
1 Processes and Threads Creation and Termination States Usage Implementations.
1 Chapter 12 File Management Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
ZMQS ZMQS
1 Peripheral Component Interconnect (PCI). 2 PCI based System.
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc
I/O and Networking Fred Kuhns
Content Overview Virtual Disk Port to Intel platform
Operating Systems Operating Systems - Winter 2011 Dr. Melanie Rieback Design and Implementation.
Operating Systems Operating Systems - Winter 2012 Dr. Melanie Rieback Design and Implementation.
Squares and Square Root WALK. Solve each problem REVIEW:
CSC 360- Instructor: K. Wu Overview of Operating Systems.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
3.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Process An operating system executes a variety of programs: Batch system.
Operating System.
Processes Management.
Addition 1’s to 20.
25 seconds left…...
Operating Systems Manage system resources –CPU scheduling –Process management –Memory management –Input/Output device management –Storage device management.
Week 1.
We will resume in: 25 Minutes.
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3 3 Operating System Organization.
EEE 435 Principles of Operating Systems Operating System Concepts (Modern Operating Systems 1.5)
Threads, SMP, and Microkernels Chapter 4. Process Resource ownership - process is allocated a virtual address space to hold the process image Scheduling/execution-
Operating Systems: Software in the Background
Figure 1.1 Interaction between applications and the operating system.
CSI 400/500 Operating Systems Spring 2009 Lecture #2 – Functional Parts of an Operating System Monday January 23, 2009.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3 Operating System Organization.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 2: System Structures.
Operating System. Architecture of Computer System Hardware Operating System (OS) Programming Language (e.g. PASCAL) Application Programs (e.g. WORD, EXCEL)
OPERATING SYSTEM OVERVIEW. Contents Basic hardware elements.
Introduction to Operating Systems Chapter 1. cs431 -cotter2 Lecture Objectives Understand the relationship between computing hardware, operating system,
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3.
Operating Systems Lecture November 2015© Copyright Virtual University of Pakistan 2 Agenda for Today Review of previous lecture Hardware (I/O, memory,
Chapter 3 Operating Systems © 2007 Pearson Addison-Wesley. All rights reserved.
Chapter 3: Operating Systems
Concepts and Structures. Main difficulties with OS design synchronization ensure a program waiting for an I/O device receives the signal mutual exclusion.
Silberschatz, Galvin, and Gagne  Applied Operating System Concepts Module 3: Operating-System Structures System Components Operating System Services.
Operating System Structure Lecture: - Operating System Concepts Lecturer: - Pooja Sharma Computer Science Department, Punjabi University, Patiala.
CSCE451/851 Introduction to Operating Systems
Lecture 3: Basic OS Concepts
Chapter 4 – Introduction to Operating System Concepts
CS 3305 System Calls Lecture 7.
What is an Operating System?
OS Virtualization.
Chapter 15, Exploring the Digital Domain
CGS 3763 Operating Systems Concepts Spring 2013
Threads Chapter 4.
Lecture 3: Basic OS Concepts
Operating Systems Lecture 3.
Chapter 3: Operating Systems
Introduction to Operating Systems
Chapter 3: Operating Systems
Operating Systems: A Modern Perspective, Chapter 3
Chapter 3: Operating Systems
Chapter 3: Operating Systems Computer Science: An Overview
Chapter 3: Operating Systems
In Today’s Class.. General Kernel Responsibilities Kernel Organization
Presentation transcript:

COMP1214 Systems & Platforms: Operating Systems Concepts Dr. Yvonne Howard – Rikki Prince – 1

Lessons from last sessions The main concerns of an OS – Providing application developers with an interface to use system resources – Managing the system resources How can devices communicate with the OS? The separation of concerns among – I/O devices, I/O device controllers (hardware), Device drivers & OS 2

Plan Identifying OS concepts Discuss individual concepts – Establish relevance to OS concerns 3 OS concepts Files Processes Memory mgmt System calls Relating concepts

Discussion Are you familiar with the following OS concepts? What are they? – Files – Processes 4 OS concepts Files Processes Memory mgmt System calls Relating concepts

Files 5 OS concepts Files Processes Memory mgmt System calls Relating concepts

Files 6 OS concepts Files Processes Memory mgmt System calls Relating concepts path name root directory working directory special files pipes

Linking and mounting 7 OS concepts Files Processes Memory mgmt System calls Relating concepts

Discussion Have you seen the list of processes running on: - A windows environment? - A UNIX environment? What types of processes can you see? -Is it one process per application? What is the life-cycle of a process? 8 OS concepts Files Processes Memory mgmt System calls Relating concepts

Windows Task Manager 9

Linux ps command 10

Processor modes Processors can be running in – Kernel mode – User mode The processor enters kernel mode: – At start-up, interrupt, error.... The processor enters user mode: – By an instruction (which sets the respective register in the CPU) Certain instructions can only be executed in kernel mode (privileged instructions) – Accessing CPU registers – Memory used by the kernel – I/O 11 OS concepts Files Processes Memory mgmt System calls Relating concepts

Kernel mode-User mode in Win NT 12 OS concepts Files Processes Memory mgmt System calls Relating concepts SOURCE: support.novell.com

Processes Multiprogramming – More tasks than processors – Processors switching between tasks – Illusion of parallelism Scheduling – Which task is next? One application requires one or more such tasks (processes) 13 OS concepts Files Processes Memory mgmt System calls Relating concepts

Processes Each task/process can access system resources Illusion of exclusive use of – Memory (Address space) – Storage – … Can be notified of events by the OS or other processes (signals) 14 OS concepts Files Processes Memory mgmt System calls Relating concepts

Discussion What is the use of each type of memory in the hierarchy below? How is memory shared among processes? What if a program needs more memory than available in RAM? 15 OS concepts Files Processes Memory mgmt System calls Relating concepts

Memory layout & Processes 16 OS concepts Files Processes Memory mgmt System calls Relating concepts Memory available per process? ADDRESS SPACE Memory needed larger than RAM? VIRTUAL MEMORY Process Address Space Process Table …

Discussion Which concerns of an OS does each of the following concepts relate to? – Process – Files – Memory management How can the OS provide a clean interface to the resources it manages? 17 OS concepts Files Processes Memory mgmt System calls Relating concepts

Accessing system resources An OS provides applications with APIs/libraries to access system resources – System calls can be invoked by applications in user mode – And are executed in kernel mode It is important that these are stable or else applications have to be re-written each time they change 18 OS concepts Files Processes Memory mgmt System calls Relating concepts

System calls 19 OS concepts Files Processes Memory mgmt System calls Relating concepts

OS concept map 20 CPU File System p1 p2 pN p3 Virtual Memory Address Space Other File System Other System Other File System Other System OS concepts Files Processes Memory mgmt System calls Relating concepts

Other online resources CPU components and animation – Lessons/CPU/Lesson.html Lessons/CPU/Lesson.html Computer architeture resources (advanced) –

Lessons learned We are aware of the importance of OS We have introduced basic OS concepts We are familiar with the following concepts – Processes – Address space – Files – Processor modes: Kernel mode/User mode – System calls – The UNIX Shell Textbook: sections OS concepts Files Processes Memory mgmt System calls Relating concepts

next OS lectures: How can we deal with system resources competing for CPU and Memory? – Process scheduling – Memory management – File system – Virtual memory How can processors/computers be combined? How can a file system be reliable and secure? WHAT ABOUT SPECIFIC OPERATING SYSTEMS? 23