E
E
egorsmkv2015-02-07 05:47:01
Programming
egorsmkv, 2015-02-07 05:47:01

What is the best programming language for multithreading?

Interested in those languages ​​in which multithreading is highly developed and which most of the tasks take upon themselves, and do not oblige the programmer to do this.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
M
maaGames, 2015-02-07
@egorsmkv

No programming language takes on most of the tasks, freeing the programmer from work. OpenCL and others take on the job of parallelizing a number of tasks that are described by the programmer. For example, you can write a loop with through iterators and through indexes (I'm talking specifically about C ++). In the first case, the loop cannot be automatically parallelized, but in the second case it can. But provided that each iteration of the loop does not depend on other iterations. Or some pieces of code that can be executed at the same time must be explicitly marked by the programmer that they can be executed at the same time.
Those. the choice of language and method of parallelization will depend only on how easy it is to parallelize and whether you have to manually manage the creation, synchronization and removal of threads.

O
OnYourLips, 2015-02-07
@OnYourLips

Popular ones are Go and Erlang.

V
Vladlen Grachev, 2015-02-07
@gwer

OpenCL, for example (a language along with a framework). Well, any language as a wrapper.

T
Timur Sharipov, 2015-02-07
@shtr

In D language

A
alexxandr, 2016-01-20
@alexxandr

C and C++
in the rest are crooked

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question