Week 10 - July 15-19
Introduction
This week we are going to study message queues.
We are then going to do a comparison between all four IPC methods studied so far (sockets, pipes, fifos and message queues).
Videos
Quiz
Lecture Material
Labs
- Lab 7 - pipes between processes.
- Lab 8 - client/server with messaging.
Assignment(s)
Assignment 1.
Assignment 2.
Sample Code
Message Queues
- This week we study message queues. Code that demonstrates send/receive with message queues can be found at
client.h,
client1.cpp,
client2.cpp with its
Makefile.
- Code that demonstrates non-blocking message receive with message queues can be found at
client.h,
client1.cpp,
client2.cpp with its
Makefile.
- Code that demonstrates message send/receive with differing message types can be found at
client.h,
client3.cpp,
client4.cpp with its
Makefile.
- Code that demonstrates a complex structure for the message queue can be found at
client.h,
client1.cpp,
client2.cpp with its
Makefile.
- Finally, code that demonstrates the use of msgctl to retrieve message queue information can be found at
client.h,
client1.cpp,
client2.cpp with its
Makefile.
Inter-process communication, a comparison