EmbLogic's Blog

IPC USING FIFOS AND SEMAPHORES

******************************************************************************************

RCS file: server.c,v
Working file: server.c
head:
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 0
description:
Made a server file which takes request from client and forwards it to processing client
Then it takes result from processing client and gives the result back to the requesting client
the requesting client is given a pid to which server returns his answer.
=============================================================================

RCS file: script,v
Working file: script
head:
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 0
description:
this is the script file which is made to execute all the files at once.
total 5 fifos are used and one semaphore is used in the server.
=============================================================================

RCS file: client.c,v
Working file: client.c
head:
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 0
description:
The client sends the request using command line arguments
and at the finishing end it reads the result back from the server.
=============================================================================

RCS file: add.c,v
Working file: add.c
head:
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 0
description:
processing client adds the two files after reading values from server
and writes back the result to the server
=============================================================================

RCS file: sub.c,v
Working file: sub.c
head:
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 0
description:
thats another processing client
it subtracts the two values
=============================================================================

RCS file: mul.c,v
Working file: mul.c
head:
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 0
description:
its function is also same as other processing clients but it multiplies them.
=============================================================================

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>