Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12612 Discussions

How to let uClinux non-preemptive

Altera_Forum
Honored Contributor II
1,062 Views

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!
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
317 Views

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

0 Kudos
Reply