Download the Tom's Hardware App from the App Store
The reference for current tech news
Yes No
Ads
Tom's Hardware > Forum > Applications > Programming > [Solved] Threads / Cores Etc.

[Solved] Threads / Cores Etc.

Forum Applications : Programming [Solved] Threads / Cores Etc.

Best answer from mindless728.

Word :    Username :           
 

This is going to be a read.....

First, with the advent of threading software whether using free threading, mutex, semaphores, or in the old days, file locks.

I am still wondering, I have so many flinking threads on my box right now, and with a new application that I am working on that does the thread thing; it simply can run about 23-35 threads at it's height of doing things.

But it scales WONDERFULLY with multiple cores, but not so much with hyper threading.

I am thinking the gist of it is I should get a new compiler from Intel and head back to the C++ days and use their 'parallel' compiler. That I think would optimize my threads in a parallel fashion to take advantage HT technology.

I dont even know if I should post this here instead of at Intel or Microsoft or NVidia.

Any input, argument, laughing, get a life (smirk) line would be appreciated.

------------------------------ H.T. Griffin, II
Outsourced Engineer
Reply to Tom Griffin
Register or log in to remove.

well, the HT scaling might be because its not as powerful as an actual core, i would say anywhere from 15-30% for the HT as opposed to using a core

you could try using intel's compiler if they have some wonderful tools built in, though be warned, if this is an application that you will be releasing anybody with AMD will see some pretty bad performance

i prefer to use free threading when available as the only performance hit is in creating the thread or if you make too many, though if you have to use a lock, depending on the app i will use either a mutex or a spin lock (spin lock can be better in some ways)

EDIT: and i would never say get a life, programming is my life right now (school and work)


Message edited by mindless728 on 03-29-2010 at 05:14:03 PM
Reply to mindless728

I would also agree with school and work; I am a 30 year veteran engineer with having to break the binding of procedural programming into this interesting advent.

Free threading rocks!

------------------------------ H.T. Griffin, II
Outsourced Engineer
Reply to Tom Griffin
Best answer

Tom Griffin wrote :

I would also agree with school and work; I am a 30 year veteran engineer with having to break the binding of procedural programming into this interesting advent.

Free threading rocks!



you have a lot of years on me then, i am a 4th year student at Rochester Institute of Technology and right now i work part time for a consultant

though i spend a lot of time programming, especially right now (between school, work, personal projects) i don't have a whole lot of time

Reply to mindless728

I think I found my solution using Intel's parallel C++ compiler.

------------------------------ H.T. Griffin, II
Outsourced Engineer
Reply to Tom Griffin

In the long run; it's going to be using a language that is mutable; where everyone talks to everything. Simply put transactional memory, transmutable variables etc. Thanks everyone for posting something I figured out from Intel, Microsoft, MIT, (shrugs) Wiki, and of all people nut jobs at Apple.

------------------------------ H.T. Griffin, II
Outsourced Engineer
Reply to Tom Griffin

Best answer selected by Tom Griffin.

------------------------------ H.T. Griffin, II
Outsourced Engineer
Reply to Tom Griffin
Register or log in to remove.
Tom's Hardware > Forum > Applications > Programming > [Solved] Threads / Cores Etc.
Go to:

There are 1858 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
  • Ask the community now
  • Publish
Ad
Ads
Latest best answer
Blu-Ray playback software recommendations?
By Rusting In Peace, 1 day ago:

My advice to you would to be avoid getting blu ray on PC it's totally annoying because of...

Best offers
They won a badge
Join us in greeting them
Top experts