EmbLogic's Blog

ipc using threads and messagequeue

head 1.9;
access;
symbols;
locks
ashish:1.9; strict;
comment @ * @;

1.9
date 2015.03.24.12.44.39; author ashish; state Exp;
branches;
next 1.8;

1.8
date 2015.03.24.12.42.21; author ashish; state Exp;
branches;
next 1.7;

1.7
date 2015.03.24.12.38.12; author ashish; state Exp;
branches;
next 1.6;

1.6
date 2015.03.24.12.31.24; author ashish; state Exp;
branches;
next 1.5;

1.5
date 2015.03.24.12.20.10; author ashish; state Exp;
branches;
next 1.4;

1.4
date 2015.03.24.12.17.36; author ashish; state Exp;
branches;
next 1.3;

1.3
date 2015.03.24.12.14.13; author ashish; state Exp;
branches;
next 1.2;

1.2
date 2015.03.24.12.06.33; author ashish; state Exp;
branches;
next 1.1;

1.1
date 2015.03.24.12.05.45; author ashish; state Exp;
branches;
next ;

desc
@this is the programme for communication using threads and messagqueue
@

1.9
log
@now the req client will rcv the result using msgrcv(),and final result will be displayed
in similar manner the more client for different operations would be made
@
text

@
1.8
log
@now the proc will write the result in the server using write(),
now the server will read the result using read(),
and will send th result to the req client using msgsnd() func
@
text
@a59 1

d61 1
a61 1
@

1.7
log
@now doing the execl to access the process which will take out the result
in the process the data wiill be received using msgrcv(),now the further calculation will be depending upon the type of operator
@
text
@d60 1
@

1.6
log
@now creating a pipe which will return two file descripters one for read and one for write
now doing a fork(),which will creat a child and parent.
now we will write the the data using the write fd of pipe to the client which will do the further calculation
@
text
@d53 1
a53 2

@

1.5
log
@declaring a structure to access the operator and operands on which the calculation will be ddone
now reciving the req from first client using msgrcv(),which will access using the id return by msgget,creted for sending and receiving the requests
@
text
@d53 2
a54 1

@

1.4
log
@now,giving the defination of thrd(),
creating the two mesgques,one for sending and reciving the result,and second for the reciving and sending the result
where the both will returns the unique id
@
text
@a18 1

@

1.3
log
@now,declaring the variable,thd,thd_id of prototype pthread_t
now creating a thread using pthread_creat(),where it will give a unique thread id
we have to creat multi,thrd so,,,thrd(),should be provided with a loop
@
text
@a2 1

@

1.2
log
@including the all header file needed
declaring a function for creating a thread
@
text
@d3 1
@

1.1
log
@Initial revision
@
text
@a1 1

@

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>