i have problem regarding posix timers which was used in socket and thread programming. i like to know whether timers will handle only one thread at a time?? If it is yes, how can we use timers to handle multiple threads at the same time... i have socket programming code
/* server.c */
value...... sec =2;//sample
timer_create (CLOCK_REALTIME, &sa, &timerid);
timer_settime (timerid, 0, &value, NULL);
send(from server to client);
the above one is just sample code which shows you about my concept. it should accept all the client connection at any time and every 2 or 3 secs it should check whether any msg received from client or not.... the whole code working very fine. it accept connection from the client and able to receive and send msg until another client came. if another client came,cant able to receive msg from the first client........ i dont know why this was happening?? after severe execution, i think whether posix timers or setitimer handle one thread at a time or not?? if it is yes, how to set each timer for each thread ( it means for each client).. please clarify my doubts as soon as possible...