版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quá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)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2026江蘇蘇州市教育局直屬學(xué)校招聘教師44人備考題庫及答案詳解1套
- 2026上半年安徽事業(yè)單位聯(lián)考滁州市南譙區(qū)招聘31人備考題庫及1套參考答案詳解
- 2025江西華贛股份有限公司第二批次社會招聘1人備考題庫有完整答案詳解
- 2026江西省水投能源發(fā)展有限公司社會招聘5人備考題庫有答案詳解
- 秋天的落葉寫景類事件描述12篇
- 健康生活方式與飲食文化交流活動方案
- 《三角函數(shù)的性質(zhì)和圖像:高中數(shù)學(xué)三角學(xué)教案》
- 弱電樣板施工方案(3篇)
- 支座涂裝施工方案(3篇)
- 木工施工方案范本(3篇)
- 長護險人員管理培訓(xùn)制度
- 2026河南大學(xué)附屬中學(xué)招聘77人備考題庫附答案
- 網(wǎng)絡(luò)安全運維與管理規(guī)范(標準版)
- 2026年包頭職業(yè)技術(shù)學(xué)院高職單招職業(yè)適應(yīng)性考試模擬試題含答案解析
- 2026年XX醫(yī)院兒科護理工作計劃
- 2025-2026學(xué)年貴州省安順市多校高一(上)期末物理試卷(含答案)
- 呼吸機相關(guān)肺炎預(yù)防策略指南2026
- 妊娠期缺鐵性貧血中西醫(yī)結(jié)合診療指南-公示稿
- 北京市2025年七年級上學(xué)期期末考試數(shù)學(xué)試卷三套及答案
- 2026年上海理工大學(xué)單招職業(yè)適應(yīng)性測試題庫附答案
- TCEC電力行業(yè)數(shù)據(jù)分類分級規(guī)范-2024
評論
0/150
提交評論