Thread Scheduling Problem ( WinCE 6.0)
- From: "Alla via PocketPCJunkies.com" <u46484@uwe>
- Date: Wed, 03 Dec 2008 14:03:42 GMT
I have:
Visual Studio 2005 SP1,
WinCE 6.0 R2 with all updates up to november 2008,
Cirrus Logic's BSP for EP9302 (ep93xx).
To test my newly created OSDesign I tried to run a dummy application of the
"infinite loop" type. It have to be run once a second . Regardless of the
loading and executing method its normal work terminates in 30-35 seconds.
1. The application is loaded to my device as a part of OS (subproject). It
contains Sleep(1000). It's working for approximately 30 sec and then
everything hangs.
1-А. The same (subproject), but Sleep(1000) is replaced by permanent calls of
GetTickCount () (I know it's a bad practice!). It's working for an unlimited
time, but it's not what I need.
2. OS is downloaded to my device, the application is run by VS 2005,
connection through TCP Connect Transport and specific IP address.
2-A. If it contains Sleep(1000) it runs for the same ~30 sec.
2-B. If it contains GetTickCount () calls its working OK. But when I try to
debug it, i.e. set a breakpoint, watch registers, step over, etc. the remote
connection to the device is lost in about 30 sec.
2-C. I've added to the main thread containing Sleep(1000) the second
background thread of lowered priority (THREAD_PRIORITY_BELOW_NORMAL)
containing GetTickCount () calls. I've tried to trace its performance by LED
blinking from the main thread and by debugging messages (RETAILMSG) from both
threads. In 28-35 seconds the execution of the main thread stops, the
background thread is still working.
In addition, if I stop sending debugging messages or try to send them more
rarely (e.g. in 10 sec), again the connection is lost in the same ~30 sec.
I'd like to know, where can I found the thread scheduler in WinCE 6.0 R2?
Or maybe the problem lays somewhere else:
- In my OSDesign?
- In Cirrus's BSP (I've found there several insignificant errors)?
- or elsewhere?
Thanks in advice.
--
Message posted via http://www.pocketpcjunkies.com
.
- Follow-Ups:
- Re: Thread Scheduling Problem ( WinCE 6.0)
- From: Rik Attrill
- Re: Thread Scheduling Problem ( WinCE 6.0)
- Prev by Date: Re: CopyFile
- Next by Date: Re: how to print out a floating value...
- Previous by thread: NTP Sync TIMESVC
- Next by thread: Re: Thread Scheduling Problem ( WinCE 6.0)
- Index(es):
Relevant Pages
|
Loading