EmbLogic's Blog

complete ipc project using semaphores

RCS file: server.c,v
Working file: server.c
head: 1.13
branch:
locks: strict
root: 1.13
access list:
symbolic names:
keyword substitution: kv
total revisions: 13; selected revisions: 13
description:
included all the header files that will be used in the code
—————————-
revision 1.13 locked by: root;
date: 2014/11/11 09:16:36; author: root; state: Exp; lines: +1 -1
did the same for all the other cases
—————————-
revision 1.12
date: 2014/11/11 09:14:47; author: root; state: Exp; lines: +1 -1
again set the operation (–) in the sembuff and forward the data to the client
client receieved the data and closed the fifo
displayed the result
—————————-
revision 1.11
date: 2014/11/11 09:13:00; author: root; state: Exp; lines: +1 -1
server now set the operation (++) and reads the data
—————————-
revision 1.10
date: 2014/11/11 09:10:58; author: root; state: Exp; lines: +1 -1
after processing the data opened the file in write only mode
set the operation (–) in sembuff
wrote data to the server
—————————-
revision 1.9
date: 2014/11/11 09:08:27; author: root; state: Exp; lines: +1 -1
wrote data to the respective process
in the process side, read the data
set the operation (++)in the operation so that now the other process may execute waiting in the waiting list
—————————-
revision 1.8
date: 2014/11/11 09:05:48; author: root; state: Exp; lines: +1 -1
now in parent opened the file in srite only mode
setting the operation (–) using semop call to make the other processes wait until the current process execution is done
—————————-
revision 1.7
date: 2014/11/11 09:04:33; author: root; state: Exp; lines: +1 -1
created the parent and child processes uding fork
—————————-
revision 1.6
date: 2014/11/11 09:01:22; author: root; state: Exp; lines: +1 -1
now using the semop call setting the sembuff operation (++) to release the wait
closed the filr descriptor
—————————-
revision 1.5
date: 2014/11/11 09:00:13; author: root; state: Exp; lines: +1 -1
now the client writes the data and the server reads it
—————————-
revision 1.4
date: 2014/11/11 08:57:13; author: root; state: Exp; lines: +1 -1
in the client side,after opening the file,using the sem buff structure,set the operation (–)
—————————-
revision 1.3
date: 2014/11/11 08:55:39; author: root; state: Exp; lines: +1 -1
created the fifo between the client server and the server process
—————————-
revision 1.2
date: 2014/11/11 08:52:49; author: root; state: Exp; lines: +1 -1
initialised the union value as 1
got the unique kernel key using the semget call
—————————-
revision 1.1
date: 2014/11/11 08:51:02; author: root; state: Exp;
Initial revision

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>