Re: run time info about another thread




dnewbold wrote:

The thread being check on may or may not complete its operation, which may
be lengthy.

You are looking at this completely backwards. What you mean is, "The
task being checked may or may not have been completed because it may be
lengthy." You care about work being done, not what does it.

The requesting thread would like the designated thread to run, but it is
providing a timeout limit with the request.

You mean, "the requesting code would like the designated task to make
further progress. It is providing a timeout for that job". You aren't
interested in timing out the thread, you are interested in timing out
the job that thread was doing.

Due to the number of threads running and the work they are doing, the thread
being checked on may not actually run within the specified time limit - at
present the limit requested is 100ms.

You mean the *job* being checked may or may not make forward progress.

If I could yield to the designated thread that would be an alternative, but
I don't believe I have that option.

If no thread is working on the task, you can work on the task. If a
thread is working on the task, why do you care when or whether the
scheduler runs that thread?

So, I am looking for something I can periodically check that would tell me
if the thread has run since my last check.

You mean you are looking for something that can check the forward
progress on a job. A good way to do that is to break a job into smaller
pieces and update the job's status structure every time a piece is
completed.

DS

.



Relevant Pages

  • Re: Worker Threads and Events
    ... sleep 5 seconds after beginning the request. ... public void WorkCallback ... > public class MyClass ... > public event ProgressEventHandler Progress; ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Progress of a async webservice call
    ... When you say check the progress of an async web service, do you mean a fire ... Without an interface on a service to check the progress of a prior request ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • RE: Progress of a async webservice call
    ... > In the case of the "call it in the background so my client code isn't ... there is no way to check on the progress. ... > progress data stream on this request - as each request gets at most a ... Any processing delay of more than a few milliseconds ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: asyncronous call times out before finishing
    ... How do you know it's timing out and has not just finished processing? ... If you are starting the async process from a Request in an ASP.NET application by using a Begin* method, ... Request to timeout since the client will not receive a response until the async operation has completed. ...
    (microsoft.public.dotnet.general)
  • Re: Another sneak preview - V8.2
    ... May I request some more new features for V8? ... Move DECnet startup/shutdown control to SYSTARTUP_VMS/SYSHUTDWN ... Every little step is nevertheless progress... ...
    (comp.os.vms)