Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Structure of Processes
Process State and Transition
Data Structure for Process
Layout of System Memory
interrupt,
interrupt return
9
Zombie
Asleep
in
Memory
sleep
1
return
Kernel
Running
6
Sleep, Swapped
preempt
3
swap
out
wakeup
Preempted
reschedule
process
wakeup
swap
out
return
to user
Ready to
Run in Memory
enough mem
Created
swap
in
fork
Kernel Region
Table
A Process
Data
Stack
U Area
3
u area
Kernel
process table
main memory
State of a Process
Process table entry
Contains general fields of processes that must be
always be accessible to the kernel
U area
further characteristics of the process only need to be
accessible to the running process itself
Scheduling parameters.
Allow the kernel to determine the order in which
processes move to the states "kernel running" and "user
running
A signal field.
keeps the signals sent to a process but not yet handled.
U Area
A pointer to the process table entry
User IDs
various Timer:
Execution time in user mode
Execution Time in kernel mode
U Area (contd.)
I/O parameters
Amount of data transfer
Address of source and target etc.
10
11
Regions
Region
Text
8K
Data 16K
Stack 32K
a
Text
4K
Stack
32K
Process
Data 8K
B
e
d
13
8K
empty
Data 32K
137K
Stack 64K
852K
87K
764K
541K
552K
433K
783K
727K
333K
986K
941K
897K
1096K
Virtual Addresses
.
.
.
.
.
.
.
.
2001K
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.