LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-29-2008, 04:24 AM   #1
greplinux
Member
 
Registered: Jun 2007
Posts: 118

Rep: Reputation: 17
Multi threading


Hi All,

Is it possible to assign a thread(pthread)to a specific processor in a multi core system? If yes how can we achieve it?

Thanks,
 
Old 12-29-2008, 02:52 PM   #2
lepht
Member
 
Registered: Jan 2008
Location: Silver City slums
Distribution: Fedora 11 Leonidas
Posts: 75

Rep: Reputation: 16
seems like you can only do it if you hack it up. at least a while ago they were having to, doesn't say if they ever made it work:

https://kerneltrap.org/mailarchive/f.../216158/thread
 
Old 12-29-2008, 05:25 PM   #3
alexhwest
Member
 
Registered: Dec 2008
Location: Cleveland, OH
Distribution: Ubuntu
Posts: 30

Rep: Reputation: 15
You can do it for a process or newly executed process, but specifically for pthreads, not sure.

I have done it this way, but only for specific processes:
http://www.cyberciti.biz/tips/settin...r-process.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi-threading in C Mr Tummyfluff Programming 3 11-08-2008 02:13 PM
multi threading slower than single threading on dual core. why? nebojsa.andjelkovic Programming 13 01-30-2007 10:56 PM
problems about multi-threading and/or multi-processing with tcp network in java ... alred Programming 5 06-23-2006 04:21 PM
Multi-threading rch Programming 3 03-30-2003 11:27 PM
Multi threading Mohsen Programming 5 03-02-2003 12:13 AM


All times are GMT -5. The time now is 10:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration