Multithreading – switch to parallel coding

We all write code for a single processor

What do we need (software tools, logic, algorithms) to implement this transformation?

Editor: in my opinion, because we have done a lot of parallel tasks, we need to convert these real-world solutions (algorithms) into computer language Just as OOP coding does for program coding OOP is more realistic than procedural coding style So I hope to have such a solution

Solution

I think the most important requirement is an excellent language with native constructs that support parallelism or constructs that can automatically generate parallel code Many languages fit this description, but none is popular enough to really be considered mainstream That, in turn, is caused by several things:

>By their very nature, these languages are very different from today's imperative languages and are therefore difficult to learn (or at least look like that). > They often lack good tools and libraries, making them unavailable for any "real" project

Of course, if it is more popular, more people are willing to learn it and will have more support, so it is a difficult cycle to break I think all we can do is hope

The above is the whole content of multithreading - switching to parallel coding collected by programming house for you. I hope this article can help you solve the program development problems encountered in multithreading - switching to parallel coding.

If you think the content of the programming home website is good, you are welcome to recommend the programming home website to programmers and friends.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>