On Mon, Feb 04, 2002 at 11:24:47AM -0600, Ken Teh wrote: > Does stock Linux 2.4 have a syscall to lock a process down to the > specified cpu on a dual cpu M/B? Does RTlinux offer something similar? I > vaguely remember it does but I cant seem to put my finger on what it might > be called.
Linux in and of itself doesn't have process affinity. Although it shuold be noted that generally, linux is cleverer than you, and you should leave it to schedule stuff on it's own. Linux /does/ try to keep stuff on the same CPU, to take advantage of caches, and stuff, but... The RTLinux kernel, though... man 3 pthread_attr_getcpu_np man 3 pthread_attr_setcpu_np [note: even without your intervention, RTLinux threads pretty much stick to the same CPU, anyways] Enjoy, Gary (-; -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/
