Implemented project 4 using thread successfully.
run successfully 1021 clients at a time.
in this project i have used one fifo for requesting and one fifo for final result in between clients and server.
on other side i used messgae queue in same manner
here is logfile
RCS file: server.c,v
Working file: server.c
head: 1.7
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 7; selected revisions: 7
description:
Intially i creted a server.
then i use mkfifo and access to use the fifo created by client.
further i opened same fifo in the O_RDONLY mode and was able to read from the fifo successfully.
—————————-
revision 1.7
date: 2013/06/27 08:07:10; author: jatinder; state: Exp; lines: +197 -56
made following changes
1. semp and semv function registeration.
close fd in client
3. getting the result for 1021 clients.
—————————-
revision 1.6
date: 2013/06/26 06:51:11; author: jatinder; state: Exp; lines: +64 -4
Now used thread attribute detached.
server running for running for infinite time.
cleint successfully send data by fifo
in server respective thread is invoked.
thread invoke pclient by execl system call
thread wait for pcleint exit code.
then thread send messgae by message queue.
pcleint process the data and sent by message queue.
thread recived message by msgrcv.
fruther thread sent data back to server by fifo
“logfile” 63L, 2525C 1,0-1 Top
Facing problem in writing and reading. plz explain the concept of setting qset and quntum.