Programmers must know seven concurrent programming model

1. thread lock
thread lock model has many well-known shortcomings, but still the technical basis for other models, is the first choice for many concurrent software development.

2. Functional Programming

One reason for the growing importance of functional programming, is that it provides good support for concurrent programming and parallel programming. Functional programming eliminates the variable state, it is a fundamental thread-safe, and easy to execute in parallel.

 

3.Clojure Road - separation and identification state

Clojure programming language is an imperative programming and functional programming mix and match programs, the delicate balance achieved in two kinds of programming to take advantage of both.

 

4.actor

actor model is a very wide applicability of concurrent programming model for shared memory and distributed memory model model, also suitable for solving the problem geographic distribution type, can provide a strong fault tolerance.

 

The communicating sequential processes (Communicating Sequential Processes, CSP)

On the surface, the CSP model is very similar to the actor model, both based on message passing. However CSP model focuses on the delivery channel information, and the actor model entity focused on both ends of the channel, using the CSP model code with distinct styles.

 

6. Data Level Parallelism

Each laptop computer hidden in a supercomputer --GPU. GPU using data-level parallelism, not only fast image processing, can be used for a wider area. If you want to finite element analysis, computational fluid dynamics, or a host of other digital computing, GPU performance will be the best choice.

 

7.Lambda architecture

The arrival of big data era is inseparable from parallel - now we just need to add computing resources, will be able to have the ability to deal with TB-level data. Lambda architecture combines the features of MapReduce and stream processing architecture can handle a variety of big data problems.

Note: The article is reproduced from the network, if you feel you find this helpful, I welcome the attention of the public No. [ Java technology zhai ], there is a new article conference first notify you.

Guess you like

Origin www.cnblogs.com/lfs2640666960/p/11415731.html