SCOOP (software)SCOOP (Simple Concurrent Object Oriented Programming) is a concurrency model designed for the Eiffel programming language, conceived by Eiffel's creator and designer, Bertrand Meyer. SCOOP defines a way for an object oriented program to be written without the concept of threads, locks, or other typical multiprogramming methods. This allows the compiler or runtime environment to optimize the amount of concurrency as well as eliminate typical design flaws such as deadlock. The model was first designed in the early 1990s and published in 1993 in the Communications of the ACM[1] An updated version was described in chapter 30 of the book Object-Oriented Software Construction.[2] A prototype implementation was developed in 1995 by Eiffel Software. An article by Compton and Walker[3] provides an overview of SCOOP and describes another early implementation. Nienaltowski, Arslan and Meyer have published a description of the model as of 2003.[4] Work on SCOOP proceeded at the Chair of Software Engineering at ETH Zurich.[5] SCOOP became available as a standard part of EiffelStudio early in 2011.[6] Technical overviewSCOOP works by allowing references to certain objects to be declared as separate. In the code below, an entity local_inventory: separate INVENTORY
A separate object may be handled by a SCOOP processor that is different from the processor handling the referencing object. A SCOOP processor is the abstract notion of an autonomous thread of control that handles the execution of operations on one or more objects. SCOOP processors are independent of underlying concurrency mechanisms like processor threads, multiple processor cores, and distributed computer systems. In addition to the concept of separateness, SCOOP exploits the principles of design by contract as part of the SCOOP strategy for synchronizing access to shared separate resources. For example, a precondition for a consumer wishing to access an item in the inventory example above, might be that such an item does currently exist. This would be expressed with a contract on the feature of class item: PRODUCT
-- Current item
require
inventory_has_item: has_item
In traditional, sequential processing, a client intending to call In the presence of SCOOP and given the separateness of As a result, when SCOOP is enabled, the precondition See alsoReferences
External links
|