Answer the question
In order to leave comments, you need to log in
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
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.
OpenCL, for example (a language along with a framework). Well, any language as a wrapper.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question