Hello,
I am testing TinyOS scheduler FIFO policy
I change Blink application,add 3 tasks which execution of each task
takes about 1 second (8 Million NOP instruction on Mica2 platform)

        task void Task0() {
                call Leds.led0Toggle();
                waitLongTime();
        }
        task void Task1() {
                call Leds.led1Toggle();
                waitLongTime();
        }
        task void Task2() {
                call Leds.led2Toggle();
                waitLongTime();
        }
        event void Timer0.fired() {
                post Task0();
        }
        event void Timer1.fired() {
                post Task1();
        }
        event void Timer2.fired() {
                post Task2();
        }       

        event void Boot.booted() {
                call Timer0.startOneShot( 750 );
                call Timer1.startOneShot( 500 );
                call Timer2.startOneShot( 250 );
        }
        
I am simulating this application with Avrora-beta-1.7.105 (because I
don't have any Mote)
the leds should toggle following order:
led2 -> led1 -> led0
but simulation shows the follow order:
led2 -> led0 -> led1
what is the problem? are there bugs in Scheduler,timer system or avrora?
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to