[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

preemption




	Hi everyone!

Question: I got my softplc running now, but when I set up several tasks
and make one extremely busy, it does not get get preempted by a higher
priority task;
I got four tasks, one of which is doing a busy-loop counting up to 60000
in 10 milliseconds - and a higher priority task that just increments a
variable each time, which should be scheduled every millisecond. As I
said, this does not work properly, since the 1 millisecond task seems to
get called not often enough.
I set sched_param.sched_priority for all tasks; is that enough or do I
need to do anything else to get my tasks properly preempted?

thanks
	Daniel

-- 
Daniel.Krippner@gmx.net
Student of Communication Engineering/Computer Networking
Furtwangen University of Applied Sciences