Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

How to let uClinux non-preemptive

I want my application is non-preemptive when it is running.

I tried to use system call: sched_setscheduler(0, SCHED_FIFO, ) to make the user application non-preemtivable. It seems works. However, the led and sever segment still change and work as normal. How are these two components controlled? Are they controlled by processes or just hardware interrupt handler? do they still preempt my application?

thanks!

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    They are manipulated by a kernel timer, which is handled in interrupt time (softirq). So it is normal they are still going.