Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Sep 2004 23:18:32 -0700 (PDT)
From:      Dennis George <easyeinfo@yahoo.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Binding process to a fixed processor
Message-ID:  <20040907061832.14100.qmail@web53909.mail.yahoo.com>
In-Reply-To: <413D4810.7030904@elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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@freebsd.org mailing list
>>http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
>>To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
> 
> 
> 
> 
> 
> ---------------------------------
> Do you Yahoo!?
> New and Improved Yahoo! Mail - 100MB free storage!
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"




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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040907061832.14100.qmail>