ACM SIGAda Ada Letters · 2006 · 11 citations · 6 references
ComputingComputer EngineeringComputer ScienceProgramming LanguagesQueuing TheorySystems ProgrammingConcurrency AnalysisConcurrency ControlConcurrent ProgrammingQueueing SystemsThread ProgrammingConcurrency SemanticsConcurrent ProcessesCondition SynchronizationMonitor-based ConcurrencyMonitorsProgramming Software ErrorsSynchronization
Learning concurrency paradigms is necessary but it is not sufficient since the choice of run-time semantics may introduce subtle programming errors. It is the aim of this paper to exemplify the importance of process queuing and awaking policies resulting from possible choices of the monitor concept implementation.The first part of the paper compares the behaviour of concurrent processes sharing a unique waiting queue for condition synchronization when implemented in Java or in Ada. A particular solution of the dining philosophers paradigm will be used to show how the difference in the monitor semantics may lead or not to deadlock. This comparison provides insight for deriving a correct Java implementation. The second part of the paper shows how the implementation can be refined when using Ada entry families and requeue with requeue once restriction. The result is elegant, safe and fair, and deterministic. This paper ends with quantitative comparisons of concurrency complexity and of concurrency effectiveness.We conclude that Java and C# multithreading need defensive concurrent programming while Ada allows more latitude for developing correct concurrent programs.
6
The Art of Computer Programming
G.E. Whitesides · Nuclear Science and Engineering · 1970 · 6.1K citations
C. A. R. Hoare · Communications of the ACM · 1974 · 1.5K citations · Full text
The structure of the “THE”-multiprogramming system
Edsger W. Dijkstra · Communications of the ACM · 1968 · 1.1K citations · Full text
Hierarchical ordering of sequential processes
E. Dijkstra · Acta Informatica · 1971 · 777 citations