Re: question about thread scheduling

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



If CeSetThreadQuantum(3) on my neural network thread, will it starts from
the entry point of thread instead of where it is preempted?
"Steve Wolstenholme" <steve@xxxxxxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:cuntv21lgdjbnoh3qsb3khsc7tcgns3nu8@xxxxxxxxxx
On Mon, 19 Mar 2007 15:04:17 +0100, "Zhiqiang Li"
<zhiqiang.li@xxxxxxxxxx> wrote:

now the control thread get running every 4ms, but I got another question
on
thread scheduling. Since the thread doing neural network stuff want to use
up the CPU time allocated to it as much as possible, it is an optimization
problem, the longer it runs, the better the result, but at some point, it
will be preempted by higher priority thread: control thread,
and enter a suspended state, how can I get the thread doing neural network
stuff start over again when next time it is awakened. Sicne normally it
would start from where it is preempted, right?

In my neural network I set the base priority to IDLE_PRIORITY_CLASS so
that the threads only run when the system is idle. The application
uses whatever CPU is available (90% plus) but yields to anything that
wants to run. The best of both worlds.

--
Steve Wolstenholme Neural Planner Software Ltd

EasyNN-plus. The easy way to build neural networks.

http://www.easynn.com


.


Quantcast