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
Neil
Follow me on twitter -> http://twitter.com/Skeniver
Apps & blog -> http://www.formidableapps.co.uk
User avatar
Skeniver
Senior Developer
Senior Developer
 
Posts: 106
Joined: Tue Feb 03, 2009 3:51 pm
Location: Canterbury, UK

Top

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

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

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 19 guests