Practice
Concurrent programming encompasses the programming languages and algorithms used to implement concurrent systems. Concurrent programming is usually considered to be more general than parallel programming because it can involve arbitrary and dynamic patterns of communication and interaction, whereas parallel systems generally have a predefined and well-structured communications pattern. The base goals of concurrent programming include correctness, performance and robustness. Concurrent systems such as Operating systems and Database management systems are generally designed to operate indefinitely, including automatic recovery from failure, and not terminate unexpectedly (see Concurrency control). Some concurrent systems implement a form of transparent concurrency, in which concurrent computational entities may compete for and share a single resource, but the complexities of this competition and sharing are shielded from the programmer.
Because they use shared resources, concurrent systems in general require the inclusion of some kind of arbiter somewhere in their implementation (often in the underlying hardware), to control access to those resources. The use of arbiters introduces the possibility of indeterminacy in concurrent computation which has major implications for practice including correctness and performance. For example arbitration introduces unbounded nondeterminism which raises issues with model checking because it causes explosion in the state space and can even cause models to have an infinite number of states.
Some concurrent programming models include coprocesses and deterministic concurrency. In these models, threads of control explicitly yield their timeslices, either to the system or to another process.
Read more about this topic: Concurrency (computer Science)
Famous quotes containing the word practice:
“Know how to be content and you will never be disgraced; practice self-restraint and you will never be in danger.”
—Chinese proverb.
Laozi.
“It is accordance with our determination to refrain from aggression and build up a sentiment and practice among nations more favorable to peace ... that we have incurred the consent of fourteen important nations to the negotiation of a treaty condemning recourse to war, renouncing it as an instrument of national policy.”
—Calvin Coolidge (18721933)
“Whatever my own practice may be, I have no doubt that it is a part of the destiny of the human race, in its gradual improvement, to leave off eating animals, as surely as savage tribes have left off eating each other when they came in contact with the more civilized.”
—Henry David Thoreau (18171862)