Re: Threadpoollllll!!!! help

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




You really need to examine what is going on inside each thread.

For example, if the thread makes a call without a timeout, or has an endless loop, or long running query, it will tie up a thread for that amount of time.

Do you have control over the code that is executed /inside/ the threaded method ( "Trigger" ) ?


ArtOfSpeech@xxxxxxxxx wrote:
hi,
i have a program that runs multiple (10..12) tasks using threadpool...
the program runs smoothly almost all the time, but it suspends after a
long period of time (like 24 hours or so) for a reason that i cant
figure out!!!

i call the thread using this command:
ThreadPool.QueueUserWorkItem(New WaitCallback(AddressOf
Trigger(i).start))


where trigger is an array of objects of my own


can anyone tell me plz what's wrong with what i am doin!!!??


thx alot in advance

.



Relevant Pages

  • Re: Page Timeout
    ... tested that and it worked but my boss prefers the timeout approach. ... There wouldn't be a reason why testing it with the server ... the Cache property of Response. ... then forgot cache use session time out, in each of your secure pages ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to know that the server side has close the connection when using java socket?
    ... writing; and one way to detect a disorderly close: ... that doesn't use a read timeout is improperly written IMO, ... I've seen code that does just this for no apparent reason: ... martin@ | Martin Gregorie ...
    (comp.lang.java.programmer)
  • Re: Threads and Exceptions
    ... you are completely correct that my suggestion is far from a robust solution. ... However, you might be interested to know that the reason I had to do this was because I had a boss who insisted on running his remoting endpoint in his VB.NET IDE in debug mode, occasionally with breakpoints set which would of course insure that his methods never returned. ... Adding a timeout in _some_ fashion is obviously the goal here, but using the BeginInvokemethod on a delegate instance as Peter B suggests is not a good general-purpose way to impose a timeout on some operation. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: ata timeouts under load
    ... It is not the reason, ... I have very similar problem with one disk in gmirror, but it is on 7.2 not current. ... Is it time to make the ATA timeout sysctl tunables? ...
    (freebsd-current)
  • Re: perl style: can I combine two steps into one?
    ... >>The reason for that is, that if there is some obscure bug in the code, ... that the program will run in endless loop. ... It's not that you want to work around your mistakes, ... Rasto Levrinc ...
    (comp.lang.perl.misc)