CSE531 Project 1
Due: Nov. 10th

(updated due date)

Problem:

  1. Write a library consisting of 2 routines:
         mysend ( port, message)  // sends a message to a port
      myrecv ( port, message) // receives a message from a port.
  2. Write test programs to test your implementation

Assumptions:  //updated

Approach:

To make it simpler (actually to make it really simple) you are provided with a small header file that provides you with shared memory, semaphores and fake threads. the threads are fake as they are really Unix processes, but they share memory using the shared memory mechanism.

Testing:

To test the project, you should

  1. Write a simple client server application, with 2 clients using 1 server
  2. Write a sending loop and a receiving loop and run many sender and 1 receiver, or many receivers and 1 sender to see if the ports are handling overflow/underflow properly.

Instructions for using the header file are here: IPC_example.txt

All the files you need, including a README and examples and the header file are in the ZIP archive: 531.zip  //updated, linux fix

Future: In the next project (or projects) we will be expanding the project to handle multiple machines and optionally name service (with creation, deletion of ports). Final project submission will be accompanied by a demo of your project.