This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RTX51 tiny

When a task is stoped due to time out?
Will it sart again from the beganing or from the last statment that it was executing??

  • Hello,

    it depends on the state of TIMESHARING variable from your application's CONF_TNY.A51 file. If set it 0 (zero), then your task is stopped when it wants to be stopped, i.e. when it calls any of the os_wait_xxx() functions. If this value is different from 0, then after
    TIMESHARING x ROUND_ROBIN_TIME (set by hardware timer ticks) your task is interrupted and goes to sleep. In either case the task will simply continue to work as if nothing else happend, after it is granted the processor time again.

    PS. I have changed RTX51TNY.A51 file a little bit to allow os_wait(xx,yy,0) to behave like it should (IMHO): check if someone else is waiting in the tasks queue, and then restart immediately. I wonder if anybody tried to improve RTX TINY in any way ?