Premium
Java threads and SugarCubes
Author(s) -
Boussinot Frédéric,
Susini JeanFerdy
Publication year - 2000
Publication title -
software: practice and experience
Language(s) - English
Resource type - Journals
SCImago Journal Rank - 0.437
H-Index - 70
eISSN - 1097-024X
pISSN - 0038-0644
DOI - 10.1002/(sici)1097-024x(20000425)30:5<545::aid-spe308>3.0.co;2-q
Subject(s) - computer science , programming language , java , java concurrency , thread (computing) , concurrency , real time java
SugarCubes is a set of Java classes which provides a simple and structured approach to concurrency. It offers a powerful and modular communication mechanism based on instantaneously broadcast events. The semantics of SugarCubes code is deterministic and does not depend on arbitrary choices made by the execution platform. SugarCubes gives programmers a sound and fine control over execution; for example, reactive instructions can be preempted in a completely clean way. The paper compares thread‐based programming with SugarCubes programming. It shows that SugarCubes is simpler and more structured than the standard Java threading mechanism. Copyright © 2000 John Wiley & Sons, Ltd.