Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multicore programming: what's necessary to do it?

I have a quadcore processor and I would really like to take advantage of all those cores when I'm running quick simulations. The problem is I'm only familiar with the small Linux cluster we have in the lab and I'm using Vista at home.

What sort of things do I want to look into for multicore programming with C or Java? What is the lingo that I want to google?

Thanks for the help.

like image 872
Nope Avatar asked Oct 19 '09 20:10

Nope


People also ask

Does programming require multiple cores?

Different computing tasks take different resources. The number one factor of whether programs will run smoothly is how many cores you have. If you want to run multiple apps at once or more resource-intensive programs, your device needs multiple CPU cores.

How many cores do I need for programming?

editing your source code and compiling it should only need 1 core. but running your application will need any number of cores — depending on the throughput demands of your application.

What programs need multiple cores?

The following are examples of CPU-hungry applications that can take advantage of multiple cores: Photo and video editing apps— Adobe Photoshop, Adobe Premier, iMovie. 3D modeling and rendering programs — AutoCAD, Solidworks. Graphics-intensive games — Overwatch, Star Wars Battlefront.


1 Answers

The key word is "threading" - wouldn't work in a cluster, but it will be just fine in a single multicore machine (actually, on any kind of Windows, much better in general than spawning multiple processes -- Windows' processes are quite heavy-weight compared to Linux ones). Not quite that easy in C, very easy in Java -- for example, start here!

like image 93
Alex Martelli Avatar answered Sep 19 '22 06:09

Alex Martelli