introduction to os & computer organization © dr. aiman hanna department of computer science...

11
Introduction to OS Introduction to OS & & Computer organization Computer organization © Dr. Aiman Hanna © Dr. Aiman Hanna Department of Computer Science Department of Computer Science Concordia University Concordia University Montreal, Canada Montreal, Canada

Upload: lora-marsh

Post on 03-Jan-2016

223 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Introduction to OS & Computer organization © Dr. Aiman Hanna Department of Computer Science Concordia University Montreal, Canada

Introduction to OS Introduction to OS & &

Computer organizationComputer organization

© Dr. Aiman Hanna© Dr. Aiman HannaDepartment of Computer Science Department of Computer Science

Concordia University Concordia University Montreal, CanadaMontreal, Canada

Page 2: Introduction to OS & Computer organization © Dr. Aiman Hanna Department of Computer Science Concordia University Montreal, Canada

22

Introduction to OSIntroduction to OS

What is an OS?What is an OS?

Software:Software:System softwareSystem softwareApplication softwareApplication software

Page 3: Introduction to OS & Computer organization © Dr. Aiman Hanna Department of Computer Science Concordia University Montreal, Canada

33

ApplicationSoftware

SystemSoftware

Hardware

(a) End UserView

(b) ApplicationProgrammer

View

(c) OS ProgrammerView

ApplicationSoftware

ApplicationSoftware

SystemSoftware

SystemSoftware

Hardware Hardware

cutsave

printsend

malloc()fork()

open()read-disk

track-mouse

start-printer

Software/HardwareSoftware/Hardware

Page 4: Introduction to OS & Computer organization © Dr. Aiman Hanna Department of Computer Science Concordia University Montreal, Canada

44

Different Software/Hardware Different Software/Hardware InterfacesInterfaces

Hardware Resources

Trusted OS

(Abstract Resources)

Software-Hardware Interface

OS Interface

System Software

(More Abstract Resources)

API

Application Software

Human-Computer Interface

Page 5: Introduction to OS & Computer organization © Dr. Aiman Hanna Department of Computer Science Concordia University Montreal, Canada

55

Introduction to OSIntroduction to OS

Different Kinds of OSDifferent Kinds of OSBatchBatchTimesharingTimesharingReal-timeReal-timeDedicated (Embedded)Dedicated (Embedded)……etc.etc.

Page 6: Introduction to OS & Computer organization © Dr. Aiman Hanna Department of Computer Science Concordia University Montreal, Canada

66

Basic Functions of OSBasic Functions of OS

Resource AbstractionResource Abstraction

Resource SharingResource Sharing

Resource Isolation Resource Isolation

Page 7: Introduction to OS & Computer organization © Dr. Aiman Hanna Department of Computer Science Concordia University Montreal, Canada

77

Advantages of SharingAdvantages of Sharing

MultiprogrammingMultiprogramming

MultitaskingMultitasking

Page 8: Introduction to OS & Computer organization © Dr. Aiman Hanna Department of Computer Science Concordia University Montreal, Canada

88

Computer OrganizationComputer Organization

Von Neumann Architecture Von Neumann Architecture ALUALUControl UnitControl UnitI/O DevicesI/O Devices……..

Page 9: Introduction to OS & Computer organization © Dr. Aiman Hanna Department of Computer Science Concordia University Montreal, Canada

99

Memory OrganizationMemory Organization

IR, MDR, PC, …IR, MDR, PC, …

Fetch cycleFetch cycle

Interrupt cycleInterrupt cycle

Page 10: Introduction to OS & Computer organization © Dr. Aiman Hanna Department of Computer Science Concordia University Montreal, Canada

1010

Where is this week coverage in Where is this week coverage in the textbook?the textbook?

Chapter 1:Chapter 1:All chapter with the following exceptionsAll chapter with the following exceptions Skip: Skip: VxWorks (page 33), Windows CE (page 36)VxWorks (page 33), Windows CE (page 36)

Chapter 2:Chapter 2:All chapter with the following exceptionsAll chapter with the following exceptionsSkip: Skip: Using Files (page 48 until page 52), Using Using Files (page 48 until page 52), Using

FORK/JOIN & QUIT (page 55 until the end of this FORK/JOIN & QUIT (page 55 until the end of this chapter, including Lab Exercise (page 76))chapter, including Lab Exercise (page 76))

Note: Parts of this skipped sections may be allocated to the labNote: Parts of this skipped sections may be allocated to the lab

Page 11: Introduction to OS & Computer organization © Dr. Aiman Hanna Department of Computer Science Concordia University Montreal, Canada

1111

Where is this week coverage in Where is this week coverage in the textbook?the textbook?

Chapter 4:Chapter 4:Sections 4.1, 4.2 & 4.3Sections 4.1, 4.2 & 4.3 Nothing to be skipped from these sectionsNothing to be skipped from these sections Other parts of chapter 4 is covered in week 2Other parts of chapter 4 is covered in week 2