Professional Documents
Culture Documents
(OPERATIONS ON PROCESSES)
SAIQA ASGHAR
Tuesday, October
1
31, 2017
CONTEN
OPERATION ON PROCESSES
PROCESS CREATION
PROCESS TERMINATION
COOPERATIONG PROCESSES
ADVANTAGES OF COOPERATING PROCESS
PRODUCER-CONSUMER PROBLEM
ADDITIONAL INFORMATION
Tuesday, October
2
31, 2017
OPERATIONS ON PROCESSES
Tuesday, October
3
31, 2017
PROCESS CREATION
Tuesday, October
4
31, 2017
RESOURCE SHARING
Tuesday, October
6
31, 2017
ADDRESS SPACE
Tuesday, October
7
31, 2017
PROCESS TERMINATION
Tuesday, October
8
31, 2017
CHILD PROCESS TERMINATION
Tuesday, October
9
31, 2017
COOPERATING PROCESSES
Tuesday, October
10
31, 2017
ADVANTAGES OF COOPERATION PROCESSES
Information sharing:
Since several users may be interested in the same piece of information
(for instance a shared file), we must provide an environment to allow
concurrent access to these types of resources.
Computation speedup:
If we want a particular task to run faster, we must break it into subtasks,
each of which will be executing in parallel on several processors.
Modularity:
The solution of a problem is structured into parts with well-defined
interfaces, and where the parts run in parallel.
Convenience:
Even an individual user may have many tasks on which to work at one
time. For instance, a user may be editing, printing, and compiling in
parallel.
Tuesday, October
11
31, 2017
PRODUCER-CONSUMER EXAMPLE
Tuesday, October
12
31, 2017
Producer-Consumer Example
Producer process
It produces information that will be consumed by consumer.
Consumer process
It consumes information produced by the producer.
Tuesday, October
13
31, 2017
Example..
Tuesday, October
14
31, 2017
There are two versions of the producer.
First Version:
The producer can produce infinite amount of items. This is called
Unbounded Buffer Producer Consumer Problem.
Second Version:
There is a fixed limit to the buffer size. When the buffer is full, the
producer must wait until there is some space in buffer before it can
produce new item.
Tuesday, October
15
31, 2017
ADDITIONAL INFORMATION
Tuesday, October
16
31, 2017