![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Multithread app - Read-Only Data | jonas.gabriel | High Level Programming | 1 | 05-14-2008 05:39 AM |
| Multithread,libcurl | canerbulut | High Level Programming | 0 | 12-23-2006 06:27 PM |
| About the Timeout | lyh003473 | SUN Solaris | 4 | 07-24-2004 10:12 PM |
| timeout | csaunders | HP-UX | 5 | 02-27-2004 10:54 AM |
| how to set timeout for aix? | ichiro | UNIX for Dummies Questions & Answers | 3 | 01-27-2004 06:36 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Timeout with multithread server
I wrote a server which creates a thread for every client connection. I have to include timeout function that will kill the server thread if the client doesn't respond for specific time. That too using signal(SIGALRM). For this i am using alarm() function.
When the server thread detects signal it calls the signal handler. Problem i am facing is that: the signal handler function will be common to all threads. In that case how to do some cleanup functions for perticular server thread? (signal number is the only input to signalhandler) i hope i explained my problem clearly if anyone has given a thought on this problem, kindly help me out... thanks in advance.... |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|