On 12/13/2011 03:48 AM, Lifeng Wang wrote: > Why is it not? > Can someone tell me why and tell me how to write the correct code for the > preemptive priority-base scheduling.
rt_printf does not preserve the order of prints between tasks. Besides with rt_print_auto_init, the first rt_printf may cause a call to malloc, which may cause a switch to secondary mode. So you should not rely on what the test prints. -- Gilles. _______________________________________________ Xenomai-help mailing list Xenomai-help@gna.org https://mail.gna.org/listinfo/xenomai-help