Unix/Linux programming Question:
Download Job Interview Questions and Answers PDF
Explain difference between IPC mechanisms?
Answer:
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
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
Download Unix/Linux programming Interview Questions And Answers
PDF
Previous Question | Next Question |
What type of scheduling is used in Unix? | Construct pipes to execute the following jobs? |