




版權(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)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 墓地承攬合同范本
- 酒店的工程合同范本
- 基于深度學(xué)習(xí)的化工廠區(qū)電力作業(yè)安全裝備穿戴檢測系統(tǒng)
- 柴芩溫膽湯對腦血管造影(DSA)圍手術(shù)期痰證患者情緒相關(guān)因子的影響
- 基于苯并吡喃骨架結(jié)構(gòu)的抗菌肽模擬物的設(shè)計、合成及抗菌活性評價
- 菏澤2025上半年山東菏澤鄆城縣結(jié)合事業(yè)單位招聘征集部分普通高校全日制本科及以上學(xué)歷畢業(yè)生入伍筆試歷年參考題庫附帶答案詳解
- 頭痛知識健康宣教
- 品牌部門年終總結(jié)
- 幼兒園核酸檢測與家長溝通方案
- 2025年甘肅省安全員考試題庫
- 兒科護理模擬考試題與參考答案
- 注意缺陷與多動障礙疾病科普幼兒心理健康教育課件
- 區(qū)域臨床檢驗中心
- 2024年07月長沙農(nóng)村商業(yè)銀行股份有限公司2024年招考3名信息科技專業(yè)人才筆試歷年參考題庫附帶答案詳解
- 中醫(yī)預(yù)防流感知識講座
- 事故隱患內(nèi)部報告獎勵機制實施細(xì)則
- 船舶水下輻射噪聲指南 2025
- 2024年黑龍江哈爾濱市中考英語真題卷及答案解析
- 房屋市政工程生產(chǎn)安全重大事故隱患判定標(biāo)準(zhǔn)(2024版)宣傳畫冊
- 2025年中國配音行業(yè)市場現(xiàn)狀、發(fā)展概況、未來前景分析報告
- 中建建筑工程竣工驗收指南
評論
0/150
提交評論