Re: run time info about another thread
- From: "David Schwartz" <davids@xxxxxxxxxxxxx>
- Date: 21 Nov 2006 21:43:35 -0800
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
.
- Follow-Ups:
- Re: run time info about another thread
- From: Bernhard Holzmayer
- Re: run time info about another thread
- References:
- run time info about another thread
- From: dnewbold
- Re: run time info about another thread
- From: Bernhard Holzmayer
- Re: run time info about another thread
- From: dnewbold
- run time info about another thread
- Prev by Date: Re: How to get real memory usage of a process
- Next by Date: Re: run time info about another thread
- Previous by thread: Re: run time info about another thread
- Next by thread: Re: run time info about another thread
- Index(es):
Relevant Pages
|