Beruflich Dokumente
Kultur Dokumente
PROCESS AND
THREADS
Derryfianto W / B / 1112034
2.1 Process
Process Creation
There are 4 principal events that causes
processes to be created:
1. System Initialization
2. Execution of a process creation system
call by a running process
3. A user to create a new process
4. Initiation of a batch job
Process Termination
The process will terminate, usually due to
one of the following condition:
1. Normal Exit
2. Error Exit
3. Fatal Error
4. Killed by another process
Process Hierarchies
In UNIX:
In Windows:
Process States
The three states a process may be in:
1. Running (actually using CPU at the
instant)
2. Ready (runnable; temporarily stopped
to let another process run)
3. Blocked(unable to run until some
external event happens)
Implementation of Process
To implement the process model, the OS
maintain a Process Table, with one entry
per process.
Modeling Multiprogramming
2.2 Threads
2.
3.
4.
Threads Usage
Many Word Processor three threads.
It is because the third thread can handle
the disk backups without interfering with
the other two.
Having three threads instead of three
processes, they share a common memory
and thus all have access.
Word Processor
a.
b.
POSIX Threads
Implementing Thread in
User Space
(-):
(-)
Hybrid Implementation
Scheduler Activation
Pop-Up Threads