Concurrent programming language |
Concurrent programming languages are programming languages that use language constructs for Concurrency (computer science). These constructs may involve multi-threading, support for distributed computing, message passing programming, sharing (including Parallel Random Access Machine) or Future (programming) (known also as promises ).
With some languages communication between concurrent parts of an application is hidden from the programmer (e.g., by using futures), with others it must be handled explicitly. Explicit communication can be divided into two classes: #Shared-memory communication, in the which concurrent parts communicate by changing shared memory locations. This style of concurrent programming usually requires the application of some form of locking (e.g., Mutual exclusion, Semaphore (programming), or Monitor (synchronization)) to coordinate between threads. #Message-passing communication, in which messages are sent to recipients as in the Actor model and Process calculi. Message-passing concurrency tends to be far easier to reason about than shared-memory concurrency, and is typically considered a more robust form of concurrent programming. Messages can be asynchronous (aka send, pray, and if no acknowledgment send again ), as Internet Protocol on the Internet, or may use a rendezvous style in which the sender blocks until the message is received, as in Transmission Control Protocol on the Internet and synchronous process calculi.
Today the most commonly used programming lanuages with specific constructs for concurrency are Java programming language and C sharp with their multi-threading and locking. These programming languages make use of both message-passing and shared-memory communication.
= Languages where concurrency is important =
Note that many of these languages are intended more as research languages (e.g., Pict) than as languages for production use. However, several of the examples (such as Erlang, Limbo, and Occam) have seen industrial use at various times in the last 20 years.
Many other languages provide support for concurency in the form of libraries (on level roughly comparable with the above list).|
|