Binding process to a fixed processor

Dennis George easyeinfo at yahoo.com
Mon Sep 6 23:18:34 PDT 2004


Actually I am looking for some command or system call which I can execute from my user level program so that I can bind one of my process to a processor............. like pbind command in Linux..............
 
Or do I have to write a system call to do that ??????????
 
Dennis


Julian Elischer <julian at elischer.org> wrote:
Dennis George wrote:
> Hi,
> 
> I am working on freeBSD 5.2. 
> 
> Dennis
> 
> Julian Elischer wrote:
> Dennis George wrote:
> 
>>Hi all,
>>
>>I am working on a intel based multi processor system. I like to know 
>>how can I bind one process permanently to one processor..... and other 
>>one for general use.....

You can bind a thread to one processor, in the kernel, but I don't know
offhand if there is a user interface for it however.. (I'd have to go
look at the code again). (goes to look)

There is code that can bind a thread to the current processor that it is on,
but nothing uses it that I can see.. If you wrote a kernel module you could 
write your own syscall to use it..


This is of course different from binding a thread to a processor
EXCLUSIVELY so that no other thread can use it.


>>
>>thanks in advance
>>
>>Dennis
>>
> 
> 
> which version of the system are you using?
> 
> 
>>
>>
>>---------------------------------
>>Do you Yahoo!?
>>Win 1 of 4,000 free domain names from Yahoo! Enter now.
>>_______________________________________________
>>freebsd-hackers at freebsd.org mailing list
>>http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
>>To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
> 
> 
> 
> 
> 
> ---------------------------------
> Do you Yahoo!?
> New and Improved Yahoo! Mail - 100MB free storage!
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"




		
---------------------------------
Do you Yahoo!?
Y! Messenger - Communicate in real time. Download now.


More information about the freebsd-hackers mailing list