Explain difference between IPC mechanisms?

Submitted by: Administrator
Ipc mechanisms are mianly 5 types

1.pipes:it is related data only send from one pipe output is giving to another pipe input

to share resouses pipe are used

drawback:itis only related process only communicated

2.message queues:message queues are un related process are also communicate with message queues

drawback:user dont know which process curently works

share memory:memory shared in distributed systems some memory wants to share some files that time it is use full

semaphores
semaphore is integer type and in semaphore resourses give coding like negetive value means process are wants to use perticular resource waiting only and 0 means no process is waiting and 1 means one resource is free and

sockets:sockets also ipc it is comunicate clients and server

with socket system calls connection oriented and connection less also
Submitted by: Administrator

Read Online Unix/Linux programming Job Interview Questions And Answers