LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 09-12-2007, 12:57 PM   #1
bavondrake
Member
 
Registered: Aug 2007
Posts: 40

Rep: Reputation: 15
Multithreading capability


How do you check whether your linux machine has multithreading capability?
thanks,
Bavon
 
Old 09-12-2007, 01:12 PM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
What exactly do you mean? Do you actually know what muti-threading is?
 
Old 09-12-2007, 01:17 PM   #3
bavondrake
Member
 
Registered: Aug 2007
Posts: 40

Original Poster
Rep: Reputation: 15
would like to know if my processor is multithreaded enabled.
 
Old 09-12-2007, 01:17 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,652

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
It does/It is.

Are you asking about taking advantage of dual cores or procressors?
 
Old 09-12-2007, 01:18 PM   #5
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,592

Rep: Reputation: 188Reputation: 188
Quote:
Originally Posted by bavondrake View Post
How do you check whether your linux machine has multithreading capability?
thanks,
Bavon
Do you mean software or hardware multithreading? Linux software always has multithreading capability. You might be able to find out whether your CPU has hardware multithreading with this command:

uname -p

But I am not sure of that.

---------------
Steve Stites

Last edited by jailbait; 09-12-2007 at 01:19 PM.
 
Old 09-12-2007, 01:19 PM   #6
bavondrake
Member
 
Registered: Aug 2007
Posts: 40

Original Poster
Rep: Reputation: 15
wanna test my application in the linux machine that is multithreaded enabled..but don know how to check that information in my linux machine.
 
Old 09-12-2007, 01:21 PM   #7
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,652

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
Yes, your Linux is multithreaded enabled.

DO you know what multithreading is? I guess not. Can you answer my question: Are you actually asking about taking advantage of multiple cores or processors, or not?
 
Old 09-12-2007, 01:26 PM   #8
bavondrake
Member
 
Registered: Aug 2007
Posts: 40

Original Poster
Rep: Reputation: 15
yes...but does that mean that if i have more than one processor in my machine and i'm using say RHEL3 then i have already have multithreading capibility?
 
Old 09-12-2007, 01:30 PM   #9
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,652

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
If you have an SMP enabled kernel, then multiple cores/processors are being used. Please note that this is not the same as using multiple threads, which is the sticking point here.

You can check if your kernel is SMP-ready by issuingthe uname -a command and looking for the word "SMP".
 
Old 09-13-2007, 12:57 AM   #10
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by bavondrake View Post
yes...but does that mean that if i have more than one processor in my machine and i'm using say RHEL3 then i have already have multithreading capibility?
You'll have "multithreading capability" with even one processor. Please clarify what you're asking :/.
 
  


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
qt multithreading? suicidle_p0ptart Linux - Software 5 08-28-2007 02:54 AM
Slow multithreading with 2.6.13 andy753421 Linux - Software 8 09-16-2005 05:29 PM
Multithreading jayashrik Programming 1 07-20-2005 05:13 AM
Strange multithreading live_dont_exist Programming 2 05-01-2005 08:26 PM
multithreading libraries Pres Programming 3 06-20-2003 04:27 AM


All times are GMT -5. The time now is 11:44 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration