Process Management (week 5) Flashcards
what is a program
a program is a binary program in execution
what is a process made up of
a binary program
data on which the program will execute
resources required for execution, including the files, devices which contain or provides the data required
–> some examples are CPU time, input-output devices, files, etc
multiple processes can be generated from _________
1 program file
for example you can only have one browser program but you can have multiple processes running in that program (opening multiple windows)
true or false
process also contains memory stack space
true
how many threads in 1 process are there in the classic process design
one as there is only one execution engine per process
how many threads in 1 process are there in the modern computer
multiple threads as there is multiple execution engines per process
threads can be thought of as
subprocesses
Describe what is a thread
a thread is a single execution engine capable of performing a series of instructions in a computer program
In a multiple threaded process, each thread needs to maintain its own set of data in order to perform its own series of instructions.
what is an example of threads
A word processor may have a thread for
–> displaying graphics,
–> another thread for responding to keystrokes from user
–>third for performing spelling and grammar checking in the background
where is thread specific data stored
Thread specific data is private to the thread. This data is usually stored in a stack.
thread specific data includes:
–> Program counter
–> Status of thread
–> processor registers
–> stack space
threads within the same process share ?
–> Program code
–> Data
–> Resources
threads are also called
lightweight processes
in unix process, OS kernel creates a _____________ to
manage process
process descriptor
in unix process, what is process identifier
it is the User handle for the process (descriptor)