EmbLogic's Blog

Interprocess communication using message queues at the requesting side and shared memory at the processing side with three clients successfully implemented.

RCS file: header.h,v
Working file: header.h
head:
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 0
description:
>> header file: contains header files which are required in the program mostly named stdio.h,sys/shm.h,sys/ipc.h,sys/types.h,sys/msg.h
=============================================================================

RCS file: server.c,v
Working file: server.c
head:
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 0
description:
this is main server..
here request is recieved using message queues
request is written to the shared memory
result is fetched back from the shared memory
and then result is sent back to the requesting clients using message queues.
=============================================================================

RCS file: c1.c,v
Working file: c1.c
head:
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 0
description:
this is requesting client contains request for the add operation
the request is sent to the server using message queues
and the result is recieved back from the server using message queues
=============================================================================

RCS file: c2.c,v
Working file: c2.c
head:
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 0
description:
this is requesting client contains request for the multiply operation
the request is sent to the server using message queues
and the result is recieved back from the server using message queues
=============================================================================

RCS file: c3.c,v
Working file: c3.c
head:
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 0
description:
this is requesting client contains request for the subtraction operation
the request sent to the server using message queues
and the result is recieved back from the server using message queues
=============================================================================

RCS file: p1.c,v
Working file: p1.c
head:
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 0
description:
this is processing client..here adding operation is performed..
request is retrieved using shared memory
and result is written back to the shared memory
=============================================================================

RCS file: p2.c,v
Working file: p2.c
head:
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 0
description:
second processing client..here subtraction operation is performed
request is retrieved using shared memory
and result is written back to the shared memory
,
=============================================================================

RCS file: p3.c,v
Working file: p3.c
head:
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 0
description:
this is third processing client ..here multiplication operation is performed
request is retrieved using shared memory
and result is written back to the shared memory
=============================================================================

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>