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

Realtime linux task on SMP machine



Hi All,

I have a linux box with two pentium processor and want to reserver 1 CPU for
realtime task (running continuously)  and the other for normal linux task.
The two should not interfere each other.  Is this possible in RTLinux?

I modified the code in /examples/mutex to have a indefinite loop

pthread_attr_setcpu_np(1);
while (1){
	do some thing
}

but this loop somehow take over completely the system and crash. I cannot
even reboot the system.  Any one knows how please give me a hint.  Thank you
very much in advance for your help.