Re: question about thread scheduling
- From: "Zhiqiang Li" <zhiqiang.li@xxxxxxxxxx>
- Date: Tue, 20 Mar 2007 11:15:42 +0100
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
.
- Follow-Ups:
- Re: question about thread scheduling
- From: Henrik Viklund
- Re: question about thread scheduling
- References:
- question about thread scheduling
- From: Zhiqiang Li
- Re: question about thread scheduling
- From: Remi de Gravelaine
- Re: question about thread scheduling
- From: Zhiqiang Li
- Re: question about thread scheduling
- From: Henrik Viklund
- Re: question about thread scheduling
- From: Zhiqiang Li
- Re: question about thread scheduling
- From: voidcoder
- Re: question about thread scheduling
- From: Zhiqiang Li
- Re: question about thread scheduling
- From: Henrik Viklund
- Re: question about thread scheduling
- From: Zhiqiang Li
- Re: question about thread scheduling
- From: Zhiqiang Li
- Re: question about thread scheduling
- From: Steve Wolstenholme
- question about thread scheduling
- Prev by Date: about the eboot.nb0 in PB6.0
- Next by Date: Re: .NET CF eats RAM!
- Previous by thread: Re: question about thread scheduling
- Next by thread: Re: question about thread scheduling
- Index(es):