EmbLogic's Blog

IPC based project using threads

RCS for sever file

RCS file: server.c,v
Working file: server.c
head: 1.34
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 34; selected revisions: 34
description:
server program using threads
—————————-
revision 1.34
date: 2014/11/21 06:58:33; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.33
date: 2014/11/21 06:57:13; author: root; state: Exp; lines: +8 -4
*** empty log message ***
—————————-
revision 1.32
date: 2014/11/21 06:39:39; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.31
date: 2014/11/21 06:37:42; author: root; state: Exp; lines: +1 -1
give client id as a type for message queue
—————————-
revision 1.30
date: 2014/11/21 06:13:45; author: root; state: Exp; lines: +21 -37
make 100 threads
—————————-
revision 1.29
date: 2014/11/20 09:46:12; author: root; state: Exp; lines: +12 -5
*** empty log message ***
—————————-
revision 1.28
date: 2014/11/20 09:16:19; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.27
date: 2014/11/20 09:15:35; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.26
date: 2014/11/20 09:10:45; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.25
date: 2014/11/20 09:09:43; author: root; state: Exp; lines: +6 -6
*** empty log message ***
—————————-
revision 1.24
date: 2014/11/20 09:07:43; author: root; state: Exp; lines: +6 -3
*** empty log message ***
—————————-
revision 1.23
date: 2014/11/20 08:59:07; author: root; state: Exp; lines: +5 -5
*** empty log message ***
—————————-
revision 1.22
date: 2014/11/20 08:57:50; author: root; state: Exp; lines: +1 -2
*** empty log message ***
—————————-
revision 1.21
date: 2014/11/20 08:56:35; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.20
date: 2014/11/20 08:56:00; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.19
date: 2014/11/20 08:54:45; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.18
date: 2014/11/20 08:53:47; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.17
date: 2014/11/20 08:52:18; author: root; state: Exp; lines: +5 -4
*** empty log message ***
—————————-
revision 1.16
date: 2014/11/20 08:49:17; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.15
date: 2014/11/20 08:45:13; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.14
date: 2014/11/20 08:37:58; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.13
date: 2014/11/20 08:37:39; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.12
date: 2014/11/20 08:36:57; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.11
date: 2014/11/20 08:30:25; author: root; state: Exp; lines: +15 -17
compute result and write it to themessage queue
—————————-
revision 1.10
date: 2014/11/20 07:59:41; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.9
date: 2014/11/20 07:57:11; author: root; state: Exp; lines: +4 -0
*** empty log message ***
—————————-
revision 1.8
date: 2014/11/20 07:52:29; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.7
date: 2014/11/20 07:50:32; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.6
date: 2014/11/20 07:47:57; author: root; state: Exp; lines: +54 -6
depending upon the information received new thread is created using pthread_create function call
—————————-
revision 1.5
date: 2014/11/20 06:52:56; author: root; state: Exp; lines: +9 -1
receive message from message queue using msgrcv function call
—————————-
revision 1.4
date: 2014/11/20 06:42:53; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2014/11/20 06:39:55; author: root; state: Exp; lines: +19 -1
create meassage queue using msgget function
control message queue operation using msgctl
—————————-
revision 1.2
date: 2014/11/19 19:36:38; author: root; state: Exp; lines: +1 -1
included file header.h
—————————-
revision 1.1
date: 2014/11/19 18:06:28; author: root; state: Exp;
Initial revision
=============================================================================

RCS for client file
RCS file: ./client1.c,v
Working file: ./client1.c
head: 1.11
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 11; selected revisions: 11
description:
this is a file for client 1 which communicates with the server
—————————-
revision 1.11
date: 2014/11/21 06:38:26; author: root; state: Exp; lines: +2 -1
get process id and send to the server
—————————-
revision 1.10
date: 2014/11/20 09:32:50; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.9
date: 2014/11/20 08:35:23; author: root; state: Exp; lines: +3 -1
recieve reesult from the message queue
—————————-
revision 1.8
date: 2014/11/20 06:41:03; author: root; state: Exp; lines: +15 -1
define a variable of the form struct msgbuf
assign value to the variable
send data to through message queue
—————————-
revision 1.7
date: 2014/11/19 20:15:01; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.6
date: 2014/11/19 20:14:35; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.5
date: 2014/11/19 20:13:50; author: root; state: Exp; lines: +8 -3
use msgctl to control message queue operations
—————————-
revision 1.4
date: 2014/11/19 19:57:16; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.3
date: 2014/11/19 19:54:52; author: root; state: Exp; lines: +11 -0
use msgget function to create message queue
—————————-
revision 1.2
date: 2014/11/19 19:37:48; author: root; state: Exp; lines: +1 -1
included file header.h
—————————-
revision 1.1
date: 2014/11/19 18:10:35; author: root; state: Exp;
Initial revision
=============================================================================
RCS for header file

RCS file: ./header.h,v
Working file: ./header.h
head: 1.8
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 8; selected revisions: 8
description:
header file for client-serverr program using threads
—————————-
revision 1.8
date: 2014/11/21 06:38:06; author: root; state: Exp; lines: +2 -0
define a new element p_id in structure msgbuf
—————————-
revision 1.7
date: 2014/11/21 06:14:25; author: root; state: Exp; lines: +1 -3
give prototype for perform_op
remove prototype for perform_add, perform_sub, perform_mul functions
—————————-
revision 1.6
date: 2014/11/20 08:36:18; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.5
date: 2014/11/20 08:34:49; author: root; state: Exp; lines: +6 -0
define a structure named result to store the computed result
—————————-
revision 1.4
date: 2014/11/20 07:48:49; author: root; state: Exp; lines: +4 -1
included header file pthread.h
give prototype for threads perofrm_add, perform_sub, perform_mul
—————————-
revision 1.3
date: 2014/11/19 20:17:58; author: root; state: Exp; lines: +15 -0
define a structure msg_format to define format of information send by client
—————————-
revision 1.2
date: 2014/11/19 19:36:52; author: root; state: Exp; lines: +3 -1
included header files sys/types.h , sys/ipc.h , sys/msg.h to use message queue as a IPC mechanism
—————————-
revision 1.1
date: 2014/11/19 18:10:51; 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>