Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-29-2008, 03:24 AM   #1
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?

Old 12-29-2008, 01:52 PM   #2
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:
Old 12-29-2008, 04:25 PM   #3
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:


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 01:13 PM
multi threading slower than single threading on dual core. why? nebojsa.andjelkovic Programming 13 01-30-2007 09:56 PM
problems about multi-threading and/or multi-processing with tcp network in java ... alred Programming 5 06-23-2006 03:21 PM
Multi-threading rch Programming 3 03-30-2003 10:27 PM
Multi threading Mohsen Programming 5 03-01-2003 11:13 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:51 AM.

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