Jump to content
  • Advertisement
Sign in to follow this  
snooty

multiprocessor

This topic is 4090 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, How should I design my software to take advantage of multi-core processors? There are tons of stuff about multithreaded programming on the net, but most are concerned with how to do synchronization or how to separate heavy work from the user interface. I want to learn the techniques to divide up the heavy work among threads.

Share this post


Link to post
Share on other sites
Advertisement
The topic is called concurrent programming (google, wikipedia should help).

And yes, it's all about synchronizing.

Overall, it's an incredibly complex domain full of pitfalls, so tutorials will be limited to trivial examples.

True workload distribution however is a matter of scientific research, although some tools that help exist, such as OpenMP or Intels TBB.

Share this post


Link to post
Share on other sites
I just finished reading "Patterns for parallel programming" by Mattson et al. It wasn't perfect but it's a good summary of techniques and patterns used to design software that takes advantage of parallel processing machines (of a variety of architectures). It has examples in OpenMP, MPI and Java.

The more general answer is read everything on threading and parallelism that you can get your hands on :)

Share this post


Link to post
Share on other sites
Quote:
Original post by the_edd
I just finished reading "Patterns for parallel programming" by Mattson et al. It wasn't perfect but it's a good summary of techniques and patterns used to design software that takes advantage of parallel processing machines (of a variety of architectures). It has examples in OpenMP, MPI and Java.

The more general answer is read everything on threading and parallelism that you can get your hands on :)
Yes. A good book. I've been also glancing some of the pages of Algorithms Sequential & Parallel: A Unified Approach by Russ Miller and Laurence Boxer lately. Seem to be easy to read and I probably read this next spring. There are also more academic books in their nature I probably tap into also. [smile]

Just recently I caught Concurrent Programming Without Locks by Keir Fraser and Tim Harris from University of Cambridge Computer Laboratory and Microsoft Research Cambridge to be quite nice and informative introduction to the subject of concurrent software without locks. That paper resembles the articles written by Brian Goetz in that it's easy to read and contains useful information.

... Something to read for myself at least in the mean time I'm waiting for some exciting books to be published. [smile]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!