重大本科四門專業(yè)課操作系統(tǒng)chapter_第1頁
重大本科四門專業(yè)課操作系統(tǒng)chapter_第2頁
重大本科四門專業(yè)課操作系統(tǒng)chapter_第3頁
重大本科四門專業(yè)課操作系統(tǒng)chapter_第4頁
重大本科四門專業(yè)課操作系統(tǒng)chapter_第5頁
已閱讀5頁,還剩59頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認(rèn)領(lǐng)

文檔簡介

Chapter

3Process

Description

and

ControlOutlineProcess

ConceptElements,

PCB,

TraceProcess

StateTwo

state

model,

Five-State

model,Suspended

processProcess

descriptionProcess

ControlExecution

of

OSSecurity

IssuesRequirements

of

anOperating

System

Interleave

the

execution

of

multipleprocesses,

to

maximize

processorutilization

while

providing

reasonableresponse

timeAllocate

resources

to

processes

Support

interprocess

communication

anduser

creation

of

processesProcess

ConceptProcessA

program

in

execution

An

instance

of

a

program

running

on

acomputer

The

entity

that

can

be

assigned

to

andexecuted

on

a

processor

A

unit

of

activity

characterized

by

theexecution

of

a

sequence

of

instructions,

acurrent

state,

and

an

associated

set

ofsystem

instructionsProcess

ElementsIdentifierStatePriorityProgram

counterProcess

ElementsMemory

pointersContext

dataI/O

status

informationAccounting

informationProcess

Control

BlockContains

the

process

elements

Created

and

manage

by

the

operatingsystemAllows

support

for

multiple

processesProcess

Control

BlockTrace

of

the

Process Sequence

of

instruction

that

execute

for

aprocess

Dispatcher

switches

the

processor

fromone

process

to

anotherExample

ExecutionTrace

of

ProcessCombined

Trace

of

ProcessProcess

StateTwo-State

Process

ModelProcess

may

be

in

one

of

two

statesRunningNot-runningQueuing

DiagramProcess

CreationProcess

TerminationProcess

TerminationQueuingProcessesNot-running

ready

to

executeNot-running

blockDispatcher

must

scan

list

to

find

process

not-running,

ready,

and

in

queue

the

longestA

Five-State

ModelRunningReadyBlockedNewExitFive-State

Process

ModelProcess

StatesUsing

Two

QueuesMultiple

Blocked

QueuesSuspended

Processes

Processor

is

faster

than

I/O

so

allprocesses

could

be

waiting

for

I/O

Swap

these

processes

to

disk

to

free

upmore

memory

Blocked

state

becomes

suspend

statewhen

swapped

to

diskTwo

new

states–

Blocked/Suspend–

Ready/SuspendOne

Suspend

StateTwo

Suspend

StatesReason

for

ProcessSuspensionProcess

DescriptionProcess

and

ResourcesProcesses

and

ResourcesOperating

System

ControlStructures

Information

about

the

current

status

ofeach

process

and

resource

Tables

are

constructed

for

each

entity

theoperating

system

managesOS

Control

TablesMemory

TablesAllocation

of

main

memory

to

processes

Allocation

of

secondary

memory

toprocesses

Protection

attributes

for

access

to

sharedmemory

regions

Information

needed

to

manage

virtualmemoryI/O

TablesI/O

device

is

available

or

assignedStatus

of

I/O

operation

Location

in

main

memory

being

used

asthe

source

or

destination

of

the

I/OtransferFile

TablesExistence

of

filesLocation

on

secondary

memoryCurrent

StatusAttributes

Sometimes

this

information

is

maintainedby

a

file

management

systemProcess

TablesManage

processesProcess

control

block–

Process

image

is

the

collection

of

program.Data,

stack,

and

attributesElements

of

a

ProcessControl

BlockElements

of

a

ProcessControl

BlockElements

of

a

ProcessControl

BlockElements

of

a

ProcessControl

BlockProcessor

State

InformationContents

of

processor

registersUser-visible

registersControl

and

status

registersStack

pointersProgram

status

word

(PSW)contains

status

informationExample:

the

EFLAGS

register

on

PentiumprocessorsPentium

II

EFLAGS

RegisterProcess

ControlModes

of

ExecutionUser

modeLess-privilegedmodeUser

programs

typically

execute

in

this

mode

System

mode,

controlmode,

or

kernelmodeMore-privileged

modeKernel

of

the

operating

systemProcess

CreationAssign

a

unique

process

identifierAllocate

space

for

the

processInitialize

process

control

blockSet

up

appropriate

linkagesCreate

or

expand

other

data

structuresWhen

to

Switch

ProcessClock

interruptprocess

has

executed

for

the

maximumallowable

time

sliceI/O

interruptMemory

faultmemory

address

is

in

virtual

memory

so

itmust

be

brought

into

main

memoryWhen

to

Switch

a

ProcessTraperror

or

exception

occurredmay

cause

process

to

be

moved

to

Exit

stateSupervisor

callsuch

as

file

openChange

of

Process

State

Save

context

of

processor

includingprogram

counter

and

other

registers

Update

the

process

control

block

of

theprocess

that

is

currently

in

the

Runningstate

Move

process

control

block

to

appropriatequeue

ready;

blocked;

ready/suspendChange

of

Process

StateSelect

another

process

for

execution

Update

the

process

control

block

of

theprocess

selected

Update

memory-management

datastructuresRestore

context

of

the

selected

processExecution

of

OSExecution

of

the

OperatingSystemNon-process

KernelExecute

kernel

outside

of

any

processOperating

system

code

is

executed

as

aseparate

entity

that

operates

in

privilegedmodeExecution

Within

User

ProcessesOperating

system

software

within

context

of

auser

processProcess

contains

kernel’s

data,program,stackMode

switch and

process

switchExecution

of

the

OperatingSystemProcess-based

operating

systemImplement

the

OS

as

a

collection

of

systemprocessMajor

kernel

functions

are

organized

asseparate

processes,

such

as

resource

monitorModular

OSFor

multiprocessorExecution

of

the

OperatingSystemOS

Executes

in

User

SpaceSecurity

IssuesSecurity

IssuesSystem

access

threatsIntrudersMalicious

softwareSecurity

IssuesCountermeasuresIntrusion

detectionAuthenticationAccess

controlFirewallsUnix

Process

ManagementUnix

SVR4Execution

of

Unix

Most

of

the

OS

execute

within

UserProcessesSyste

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論