Check if a thread has been running for too long

Put your problem here if it does not fit any of the other categories.

Check if a thread has been running for too long

Postby Skeniver » Thu Dec 17, 2009 12:02 pm

Hi there

I have a thread running which fetches data from a web service. It runs fine, but I am not sure how to implement a 'network latency' contingency plan...

How can I check how long the thread has been running and then stop it if it seems to be taking too long?

Thanks in advance
Follow me on twitter ->
Apps & blog ->
User avatar
Senior Developer
Senior Developer
Posts: 106
Joined: Tue Feb 03, 2009 3:51 pm
Location: Canterbury, UK


Postby arungupta2jan » Sat Jan 02, 2010 8:27 am

i think you need to implement it by your program .
Arun Gupta
Posts: 28
Joined: Tue Jul 28, 2009 12:53 pm


Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 12 guests