LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 11:57 AM   #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, 12: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, 12: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, 12:17 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

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

Are you asking about taking advantage of dual cores or procressors?
 
Old 09-12-2007, 12:18 PM   #5
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
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 12:19 PM.
 
Old 09-12-2007, 12: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, 12:21 PM   #7
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
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, 12: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, 12:30 PM   #9
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
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-12-2007, 11:57 PM   #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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:03 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
Open Source Consulting | Domain Registration