Unix Systems Programming: Lab 7- System V IPC:  message queues, semaphores, shared memory

Due:          Friday, February 24, 2017 @ 5:00 pm.


Purpose and Rationale

The purpose of this lab is to allow students to become comfortable with System V IPC using semaphores, message queues and shared memory.

Resources

FAQ (submission instructions and other useful stuff)
Please look at lab7 FAQ for useful material on unnamed and named pipes.

Lecture 7 is the primary source for information on System V IPC. You can find additional information in the manpages, online, as well as the following sources:

All work should be done on a machine in the department's Linux cluster. You can refer to ssh for more information on how to log into a remote machine.

Marks Distribution

This lab has three parts:

Exercise 1: Message Queues 4 points
Exercise 2: Shared Memory 4 points
Exercise 3: Shared Memory with Semaphores 4 points
TOTAL 12 points

LAB 7

Deliverables

Carefully follow the 3 steps below. NOTE: Each assignment has specific directions on how to submit.

  1. Part 1: You will have one directory to store this part of your assignment (except for the last option):F
  2. When you are finished with your directory you will create a compressed archive file using tar (this utility stores your directory as a single file, then compresses its size.)
           tar -czvf   username.lab7.tgz   username.lab7

  3. You will email your file to our TA as an attachment. He will send an acknowledgement that your assignment has been received.

  4. To  Nicholas Flees (nickflees@uchicago.edu)
    Attachment  username.lab7.tgz
    Subject  CSPP51081-lab7