This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: When or on what condition does "deschedule" happen?
"ariga masahiro" <ariga@link-lab.co.jp> writes:
> Hello,
>
> In order to measure the time of cyg_thread_delay,
> I tried to insert next codes at the top of timeslice_main( void )
> function in timeslice2 test.
>
> diag_printf("10 SEC Start !3\n");
> cyg_thread_delay(1000);
> diag_printf("Finisyed !3\n");
cyg_thread_delay(), as it's name implies, causes a thread to
delay. timeslice_main() does not run in a thread, it is called
directly from cyg_start().
If you want to run this code, do it in run_tests().
>
> But appeared next error.
> [cyg_net_init] Init: call_route_init(0x00000000)
> [cyg_net_init] Done
Note that you will not get very accurate timings if you have the
network active. The random arrival of broadcast packets from the net
may cause the network threads to run at any time.
--
Nick Garnett eCos Kernel Architect
eCosCentric Limited http://www.eCosCentric.com The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571
Registered in England and Wales: Reg No: 4422071
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss