4. Independent
process:.
• A process that are not effect are effected by
another process are called independent
process .Independent process cant share
memory or code to communicate with each
other. independent process no need to
communicate with each other. Therefore
these process are also called non
cooperative process
5. Coperative
Process:
• A process that are effect or be effected by
another process is called dependent
process. Dependent process are also
called cooperative process. Dependent
process share some code variable, state
,memory or some resourcess to
communicate with each other.Therefore
dependent process are communicate with
each other due to the above one (code,
memory or variable).
6. Cooperative Process Advantages:-
i)information sharing
II)Computation speedup
III)Modularity
Iv)Convenience(performance)
Some cooperative process need to share info
with each othere .when process runing
cuncurrently the speedup the
computer.Modulirity means that spliting a big
process into small process to maximize the
computer speed.
7. How cooperative process communicate with
each other?
IPC:-ipc stand for inter process
communication but remember only
cooperative process can communicate with
each other for above purpose .
There are difference ways through witch
process communicate with each other.these
process are given bellow.
9. Communicate by exchange message with one
another
property of passing message model:-
i)Easily implementation then share memory
model.
ii)It is useful in destributed enviroment.
iii)time consuming .
Example of message passing model is chating
through internet.
10. Opration in message passing model:-
There are tow type of optation in mpm
i)Sending and ii)receiving
Message passing b/w sender and receiver are
take place through d/f way.
i)naming ii)synchronization iii)buffering
Namning or direct communication means to
to communicated
directly to each other.
sender reciev
11. When a sender sent a message the reciever
receive the message directly from sender.
There are two type of direct communication
i)symitric ii)Asymtric communication
In symtric comunincation the sender(p) when
sent a message the reciever process(q) will
know the that the certen process want to
communicate with this process. this
communication the reciever will only receive
message from (p) not from other process.
12. Asymtric communication:-
In this communication sender(p message)
reciever(id message).
The p sent a message to the reciever will
recive the id of a process .in this the reciever
can get the the id of any other process.if
there are othere cooperate process the
reciver can take message from any other
process in if they sent a message.
13. Indirect communication:-
In indirect communication the message are
first sent to mail box by sender and the the
reciever receive the message from this
mailbox.in this the os create first a mail box
for message if the reciver receive message
from mail box then the os delete the mail
box.sender (M ,message) reciver(M ,message)
14. Synchronization:-communication b/w
difference process take place through call to
sent () and receive function.
Difference design option to implement each
function include message passing by
blocking or unblocking.
These are follow.
i)Blocking sent II)unblocking sent
iii)Blocking receive iv)unblocking reciev
15. i)Blocking sent:-
Sending message is blocked until the
message is received by receiving process or
mail box .
ii)Non blocking sent:-sending process sent
the message and resume the option.
iii)Blocking receive:-the receiver process
block until the message is available.
Iv)Unblocking receive:-the receiver process
receive either a message or null.
16. iii)Buffering:-Message exchange via any type
of communication resides In a temporary
queue. Queue can be implemented in three
ways.
i)Zero capacity ii)Bounded capacity
iii)unbounded capacity.
In zero capacity queue has maximum length
of zero .In bounded there are limit size of
queue. Unbounded capacity there are infinite
length of queue
17. Memory sharing:-In this communication the
process can communicate with each other
through sharing some memory.
END OF PRESENTATION
ANY QUESTION Search google
???????
No Question!!!
Thanks for watching