2012 · 102 citations · 29 references
ComputingComputer ScienceFormal MethodsParallel ComputingProgramming LanguagesConcurrent ProgrammingRace Condition VulnerabilitiesType CheckingType SystemsData-race FreedomDeterministic ExecutionImmutable Data ObjectsPolymorphism StudiesType PolymorphismType Safety
A key challenge for concurrent programming is that side-effects (memory operations) in one thread can affect the behavior of another thread. In this paper, we present a type system to restrict the updates to memory to prevent these unintended side-effects. We provide a novel combination of immutable and unique (isolated) types that ensures safe parallelism (race freedom and deterministic execution). The type system includes support for polymorphism over type qualifiers, and can easily create cycles of immutable objects. Key to the system's flexibility is the ability to recover immutable or externally unique references after violating uniqueness without any explicit alias tracking. Our type system models a prototype extension to C# that is in active use by a Microsoft team. We describe their experiences building large systems with this extension. We prove the soundness of the type system by an embedding into a program logic.
29
Separation logic: a logic for shared mutable data structures
John Reynolds · 2003 · 2.2K citations
Ownership types for safe programming
Chandrasekhar Boyapati, Robert Lee, Martin Rinard · 2002 · 571 citations
Type-based race detection for Java
Cormac Flanagan, Stephen N. Freund · 2000 · 446 citations
Checking interference with fractional permissions
2003 · 388 citations