Process
Process
1
Outline
n Process
n Proses : review
n definition process
n Process status
n Image proses
n Execution mode
n Conccurency
n Relation between process
n Proses: Management
n creating and terminated proses
n switching proses and context
n Process scheduling
n communication proses
n Sycronization process
n Deadlocks
Pengantar Sistem
Operasi 2
Proses: Definition
nDefinisi Umum:
Process / job / task is a program that is being executed
in a state or active.
Process vs program
A process is more than just the program code. Two
different processes can run the same program code in
memory, but it has the status and attributes of different
processes. Thus, the program is a passive entity, while
the process is an active entity.
8
PCB Pointer Status Proses
(Process Control Block )
ID Proses
ID Proses parent, dll
PC (Program Counter)
User Stack
Register CPU
.
.
Shared Address Space .
11
Process: Concurrency
n Mechanism : Concurrency are the foundation of
multiprogramming. In a single processor system,
concurrency is implemented by performing interleave
processes, whereas the multiprosesing systems,
interleave and overlap conducting by processes that
was active.
12
Gambar. Proses konkurens pada sistem single dan multiprosesor
Relation between process
n Relation between concurren process, Relations between
concurrent processes, in terms of the effect of one another,
14
Management: Process
• OS tasks in relation to the management
process:
– Control cycle such as the creation process, delays
and termination process by the user and the
system..
– Supporting communication between processes,
thus helping in the preparation of the application..
– Rotate or to schedule execution of a number
processes to maximize processor utilization, while
providing a good time.
– Regulate the allocation of resources in accordance
with the policy process so that each process is
running correctly and to prevent deadlocks.
15
Process: Creating
n Creation (creation) process can be caused
by :
n New batch job execution
n Users log on to the interactive environment
n Responses OS on demand service
n The process creates another process (child process)
17
Process: Termination(2/2)
n Termination phase process include :
n Restoring data output to the parent process.
n Remove processes from the list or table process
n Removing the PCB and also image process.
18
Process: Switching(1/2)
n Diversion (switching) process can be caused :
n Interrupt
Exp: Clock, I/O, Memory fault interrupt. caused switching
to the interrupt handler(interrupt routine )
n Trap
Special interruptions that occur because of the
condition of the exception (exception condition)
generated processes running
n Supervisor Call
Calling service by the operating system. The effect is
the process become blocked due to an active status
in the kernel (OS).
19