Question:
What is the best language for parallel programming?
?
2012-07-10 11:16:31 UTC
I already know C++.
Five answers:
adaviel
2012-07-10 11:42:25 UTC
There are many types of parallel programming.

If you write threaded code in C or whatever it should take advantage of multiple cores on a shared-memory machine.

If you want to run on GPUs which have many more cores you could look at CUDA



For Beowulf style clusters there are various middlware packages and, if I recall right, MPI for message-passing libraries which can be integrated into applications.
Monty Python
2012-07-10 11:46:01 UTC
There are no "languages" for that, there are different environments. Could you be more specific, what kind of parallelism are you talking about? Assuming you're interested in multiprocessor parallelism (so threads don't work for you), the most popular protocol is MPI (message passing interface) which originally extends C. Odds that it has everything you need for your tasks are quite high. Sometimes you might want to take a look towards more special yet interesting solutions - like T-systems (T++ for example) that make use of some functional programming concepts. There are also environments that allow you to write multithreaded programs using resources of your graphics device (CUDA or OpenCL).
JB
2012-07-10 15:02:04 UTC
C# has some nice features for parallel programming. Check out some of these parallel methods provided in the C# API.



http://msdn.microsoft.com/en-us/library/dd987541



It has for-loops that invoke each iteration on a series of cores (if available), parallel invocation methods, etc
anonymous
2017-02-23 08:35:04 UTC
Best Language For Parallel Programming
Joe
2012-07-10 11:35:05 UTC
Java script (i know, ill)

C# (C Sharp)

C

Ruby


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...