J
Jeff
IDE: VS .NET 2003
OS: XP pro sp2
I'm developing a server application, clients will connect to it over the net
and start different tasks....
When people sends a command to the program, the command is first placed into
ThreadPool for await processing...
Here is the what I'm having problem with:
I want to implement some kind of a timeout functionality, so if a task takes
too long to perform the user will be notified that a timeout occured on the
server... I'm not sure how to implement timeout, because I must time the
task from the server receive the task and put it into the threadpool and
await processing... while it is in the threadpool it's waiting to be
processed, and as far as I know, if a timeout happens while it's still in
the threadpool it will not be triggered because it isn't assgined processor
power...
Please give me some tips on how to implement this functionality
Jeff
OS: XP pro sp2
I'm developing a server application, clients will connect to it over the net
and start different tasks....
When people sends a command to the program, the command is first placed into
ThreadPool for await processing...
Here is the what I'm having problem with:
I want to implement some kind of a timeout functionality, so if a task takes
too long to perform the user will be notified that a timeout occured on the
server... I'm not sure how to implement timeout, because I must time the
task from the server receive the task and put it into the threadpool and
await processing... while it is in the threadpool it's waiting to be
processed, and as far as I know, if a timeout happens while it's still in
the threadpool it will not be triggered because it isn't assgined processor
power...
Please give me some tips on how to implement this functionality
Jeff