cosc1078 introduction to information technology lecture 14 operating systems

45
Lecture 14: Operating Systems Intro to IT COSC1078 Introduction to Information Technology Lecture 14 Operating Systems James Harland [email protected]

Upload: osgood

Post on 23-Feb-2016

39 views

Category:

Documents


1 download

DESCRIPTION

James Harland [email protected]. COSC1078 Introduction to Information Technology Lecture 14 Operating Systems. Introduction. James Harland Email: [email protected] URL: www.cs.rmit.edu.au/~jah Phone: 9925 2045 Office: 14.10.1 Consultation: Mon 4.30-5.30, - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

COSC1078 Introduction to Information Technology

Lecture 14

Operating SystemsJames Harland

[email protected]

Page 2: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Introduction

James Harland• Email: [email protected]• URL: www.cs.rmit.edu.au/~jah• Phone: 9925 2045• Office: 14.10.1 • Consultation: Mon 4.30-5.30, • Thu 11.30-12.30What colour is my office

door? Carpet? Chair?

Page 3: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Introduction to IT1 Introduction 2 Images3 Audio4 Video WebLearnTest 1 5 Binary Representation Assignment 16 Data Storage7 Machine Processing8 Operating Systems WebLearn Test 29 Processes Assignment 210 Internet11 Internet Security   WebLearn Test 312 Future of IT Assignment 3, Peer and Self Assessment

Page 4: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Overview Questions?

Assignments 1 & 2

Operating Systems

Questions?

Page 5: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Assignments 1& 2

Assignment 1 Currently being marked Will have marks out later this week

Assignment 2 Specification has been published Must be done in groups of 2 or 3 Can change groups from Assignment 1 (if you wish) Must have a blog on Blackboard

Page 6: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems SE Fundamentals

Questions?

How did you spend 6-8 hours on this course last week? This week?

Page 7: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Operating Systems

operating system

kernel device driver

open source real time

virtual machine

desktop publishing

Page 8: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Operating Systems

Operating system

Page 9: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Operating Systems Manage hardware and software resources Memory allocation Prioritising requests and processes Controlling input and output devices Managing network access Managing file systems Dealing with multiple users …

Page 10: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Operating Systems

HARDWAREHARDWARE

USER

Page 11: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Operating Systems

Page 12: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 143: Operating Systems Intro to IT

Operating Systems Concurrent execution of processes on a single

CPU Memory management

Registers, caches, RAM, hard disk, plug-ins, ...Movement of data between these

File systems Networking

Printers, scanners, LAN, wireless, Internet, ...

Page 13: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Operating Systems Graphical User Interface (GUI)

Colors, data, cursors, ... Device drivers

Code specialised for particular hardware device (DVD writer, printer, monitor, ...)Controls access to these

Security Passwords, file sharing, protocols, ...

Page 14: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Operating Systems Desktop (Windows, MacOS, Linux, ... )

Windows around 85% of market Server systems

Google “back end”, server farms, ... Windows Server or Unix

Specialist systems Supercomputers, call centres, real-time

systems, PDA systems, ...

Page 15: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 13: Operating Systems Intro to IT

Operating Systems

Page 16: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Linux Open source Developed in 1991 by Linus Torvalds Written in C RedHat, Mandrake, SUSE, Ubuntu, ... RedHat 7.1 has30 million+ lines of code

Page 17: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Windows Add-on to MS-DOSin 1985 Most popular OS Known securityissues Windows XP 40 million lines of code Vista released 2007 Windows 7 (now!)

Page 18: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

MacOS Only on Apples Introduced by Apple in 1984 GUI from the start Based on Unix Graphics features Mac OS X Leopard

Page 19: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Where to begin?How do you start an operating system?Boot it! (or bootstrap)

Turn on power ()

Machine loads bootstrap program from ROM (non-volatile memory)

Bootstrap program loads OS

OS takes over

Page 20: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Initial State When Turned On

Program Counter

InstructionRegister

00 ROM

RAM

Processor Memory Disk

BootstrapProgram

00

Page 21: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Load Bootstrap Program

Program Counter

InstructionRegister

00 ROM

RAM

Processor Memory Disk

BootstrapProgram

00

Page 22: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 146: Operating Systems Intro to IT

Bootstrap program loads OS

Program Counter

InstructionRegister

00 ROM

RAM

Processor Memory Disk

BootstrapProgram

00

Page 23: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Bootstrap program loads OS

Program Counter

InstructionRegister

00 ROM

RAM

Processor Memory Disk

BootstrapProgram

00

Page 24: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Bootstrap program has loaded OS

Program Counter

InstructionRegister

AA ROM

RAM

Processor Memory Disk

BootstrapProgram

00

AA

Page 25: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

OS takes over execution

Program Counter

InstructionRegister

AA ROM

RAM

Processor Memory Disk

BootstrapProgram

00

AA

Page 26: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Starting Up Operating Systems

Program Counter

InstructionRegister

AA ROM

RAM

Processor Memory Disk

BootstrapProgram

00

AA

Page 27: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Starting Up Operating Systems

Program Counter

InstructionRegister

AA ROM

RAM

Processor Memory Disk

BootstrapProgram

00

AA

Page 28: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Starting Up Operating Systems

Program Counter

InstructionRegister

AA ROM

RAM

Processor Memory Disk

BootstrapProgram

00

AA

Page 29: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 16: Operating Systems Intro to IT

Multiple boot scenario …

Program Counter

InstructionRegister

00 ROM

RAM

Processor Memory Disk

BootstrapProgram

00

Page 30: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 16: Operating Systems Intro to IT

Multiple boot scenario …

Program Counter

InstructionRegister

00 ROM

RAM

Processor Memory Disk

BootstrapProgram

00

Page 31: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 16: Operating Systems Intro to IT

Multiple boot scenario …

Program Counter

InstructionRegister

00 ROM

RAM

Processor Memory Disk

BootstrapProgram

00

Page 32: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Multiple boot scenario …

Program Counter

InstructionRegister

00 ROM

RAM

Processor Memory Disk

BootstrapProgram

00

Page 33: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

OS Software Classification

Software

SystemApplication

Utility

Kernel

Operating System

Shell

Page 34: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 16: Operating Systems Intro to IT

Processes

Page 35: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Processes

A program is a static set of instructions

A processes is the execution of a program, which changes state over time.

Page 36: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Processes Executing in Context

Program Counter

InstructionRegister

CC ROM

RAM

Processor Memory Disk

00

CC

Page 37: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Processes Executing in Context

Program Counter

InstructionRegister

DD ROM

RAM

Processor Memory Disk

00

CC

DD

Page 38: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Processes Switching

Ready

Ready

Waiting

Scheduler maintains process table

Page 39: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Processes Switching

Page 40: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Interrupts Signals to the CPU Often generated by timing circuits CPU reacts by jumping to appropriate memory location

Dispatcher selects a ready process resets timing circuit starts process

CPUs often designed to switch process states efficiently

Page 41: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Processes Executing in Context

Program Counter

InstructionRegister

BB ROMRAM

Processor Memory Disk00

BB

Page 42: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Processes Executing in Context

Program Counter

InstructionRegister

11 ROMRAM

Processor Memory Disk00

BB

Page 43: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 14: Operating Systems Intro to IT

Processes Executing in Context

Program Counter

InstructionRegister

FF ROMRAM

Processor Memory Disk00

FF

Page 44: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 146: Operating Systems Intro to IT

Interrupts Provide mechanism to switch processes

CPU doesn’t have to wait for I/O transfers

Switching leads to faster throughput

`Save document’ means CPU does something else while the save takes place

Page 45: COSC1078 Introduction to Information Technology Lecture  14 Operating  Systems

Lecture 15: Operating Systems Intro to IT

Conclusion

Work on Assignment 2

Web Quizzes and Web Test 2

Finish reading book!