brooks/cole, 2003 chapter 7 operating systems 作業系統 ( 電腦的管家婆 )

26
©Brooks/Cole, 2003 Chapter 7 Operating Systems 作作作作 ( 電電電電電電 )

Upload: erin-logan

Post on 19-Jan-2018

292 views

Category:

Documents


0 download

DESCRIPTION

©Brooks/Cole, 2003 Figure 7-1 Computer System

TRANSCRIPT

Page 1: Brooks/Cole, 2003 Chapter 7 Operating Systems 作業系統 ( 電腦的管家婆 )

©Brooks/Cole, 2003

Chapter 7

Operating Systems作業系統(電腦的管家婆 )

Page 2: Brooks/Cole, 2003 Chapter 7 Operating Systems 作業系統 ( 電腦的管家婆 )

©Brooks/Cole, 2003

Define the purpose and functions of an operating system.Define the purpose and functions of an operating system.

Understand the components of an operating system.Understand the components of an operating system.

Understand the concept of virtual memory.Understand the concept of virtual memory.

Understand the concept of deadlock and starvation.Understand the concept of deadlock and starvation.

After reading this chapter, the reader should After reading this chapter, the reader should be able to:be able to:

OOBJECTIVESBJECTIVES

List some of the characteristics of popular operating systemsList some of the characteristics of popular operating systemssuch as Windows 2000, UNIX, and Linux.such as Windows 2000, UNIX, and Linux.

Page 3: Brooks/Cole, 2003 Chapter 7 Operating Systems 作業系統 ( 電腦的管家婆 )

©Brooks/Cole, 2003

Figure 7-1Computer System

Page 4: Brooks/Cole, 2003 Chapter 7 Operating Systems 作業系統 ( 電腦的管家婆 )

©Brooks/Cole, 2003

DEFINITIONDEFINITION

7.17.1

Page 5: Brooks/Cole, 2003 Chapter 7 Operating Systems 作業系統 ( 電腦的管家婆 )

©Brooks/Cole, 2003

An operating system is an An operating system is an interface between the interface between the

hardware of a computer and hardware of a computer and the user (program or human) the user (program or human) that facilitates the execution that facilitates the execution

of the other programs and the of the other programs and the access to hardware and access to hardware and

software resources. software resources.

Note:Note:

Page 6: Brooks/Cole, 2003 Chapter 7 Operating Systems 作業系統 ( 電腦的管家婆 )

©Brooks/Cole, 2003

EVOLUTION:EVOLUTION:Batch systemsBatch systems

Time-sharing systemsTime-sharing systemsPersonal systemsPersonal systemsParallel systemsParallel systems

Distributed systemsDistributed systems

7.27.2

Page 7: Brooks/Cole, 2003 Chapter 7 Operating Systems 作業系統 ( 電腦的管家婆 )

©Brooks/Cole, 2003

COMPONENTSCOMPONENTS

7.37.3

Page 8: Brooks/Cole, 2003 Chapter 7 Operating Systems 作業系統 ( 電腦的管家婆 )

©Brooks/Cole, 2003

Figure 7-2

Components of an operating system

Page 9: Brooks/Cole, 2003 Chapter 7 Operating Systems 作業系統 ( 電腦的管家婆 )

©Brooks/Cole, 2003

Figure 7-3

Monoprogramming

Page 10: Brooks/Cole, 2003 Chapter 7 Operating Systems 作業系統 ( 電腦的管家婆 )

©Brooks/Cole, 2003

Figure 7-4Multiprogramming

Page 11: Brooks/Cole, 2003 Chapter 7 Operating Systems 作業系統 ( 電腦的管家婆 )

©Brooks/Cole, 2003

Figure 7-5

Categories of multiprogramming

Page 12: Brooks/Cole, 2003 Chapter 7 Operating Systems 作業系統 ( 電腦的管家婆 )

©Brooks/Cole, 2003

Figure 7-6Partitioning

Page 13: Brooks/Cole, 2003 Chapter 7 Operating Systems 作業系統 ( 電腦的管家婆 )

©Brooks/Cole, 2003

Figure 7-7Paging

Page 14: Brooks/Cole, 2003 Chapter 7 Operating Systems 作業系統 ( 電腦的管家婆 )

©Brooks/Cole, 2003

Figure 7-8Virtual memory

Page 15: Brooks/Cole, 2003 Chapter 7 Operating Systems 作業系統 ( 電腦的管家婆 )

©Brooks/Cole, 2003

Figure 7-9 State diagram with the boundaries between a program, a job, and a process

Page 16: Brooks/Cole, 2003 Chapter 7 Operating Systems 作業系統 ( 電腦的管家婆 )

©Brooks/Cole, 2003

Figure 7-10Job scheduler

Page 17: Brooks/Cole, 2003 Chapter 7 Operating Systems 作業系統 ( 電腦的管家婆 )

©Brooks/Cole, 2003

Figure 7-11Process scheduler

Page 18: Brooks/Cole, 2003 Chapter 7 Operating Systems 作業系統 ( 電腦的管家婆 )

©Brooks/Cole, 2003

Figure 7-12Queues for process management

Page 19: Brooks/Cole, 2003 Chapter 7 Operating Systems 作業系統 ( 電腦的管家婆 )

©Brooks/Cole, 2003

Figure 7-13 Deadlock

Page 20: Brooks/Cole, 2003 Chapter 7 Operating Systems 作業系統 ( 電腦的管家婆 )

©Brooks/Cole, 2003

Figure 7-14 Deadlock on a bridge

Page 21: Brooks/Cole, 2003 Chapter 7 Operating Systems 作業系統 ( 電腦的管家婆 )

©Brooks/Cole, 2003

Deadlock occurs when the Deadlock occurs when the operatingoperating

system does not put resource system does not put resource restrictionsrestrictions

on processes.on processes.

Note:Note:

Page 22: Brooks/Cole, 2003 Chapter 7 Operating Systems 作業系統 ( 電腦的管家婆 )

©Brooks/Cole, 2003

Figure 7-15.aStarvation

Page 23: Brooks/Cole, 2003 Chapter 7 Operating Systems 作業系統 ( 電腦的管家婆 )

©Brooks/Cole, 2003

Figure 7-15.bStarvation

Page 24: Brooks/Cole, 2003 Chapter 7 Operating Systems 作業系統 ( 電腦的管家婆 )

©Brooks/Cole, 2003

Figure 7-15.cStarvation

Page 25: Brooks/Cole, 2003 Chapter 7 Operating Systems 作業系統 ( 電腦的管家婆 )

©Brooks/Cole, 2003

Figure 7-16Dining philosophers

Page 26: Brooks/Cole, 2003 Chapter 7 Operating Systems 作業系統 ( 電腦的管家婆 )

©Brooks/Cole, 2003

POPULAR OPERATING SYSTEMS:POPULAR OPERATING SYSTEMS:Unix; Linux; WindowsUnix; Linux; Windows

7.47.4