An enhanced thread synchronization mechanism for Java
نویسندگان
چکیده
class Condition { protected EMonitor AssociatedEMonitor; public Condition(Object object) throws IllegalArgumentException{ if(object instanceof EMonitor) AssociatedEMonitor = (EMonitor) object; else if(object instanceof EMonitoredInterface) AssociatedEMonitor = ((EMonitoredInterface) object).GetEMonitor(); else throw new IllegalArgumentException(); }
منابع مشابه
A Join Point for Synchronized Block in AspectJ
Synchronization is a key software concern that could be advised not only for synchronization in a multi-threaded program but also for treating the distributed environment as the crosscutting concern. However, the synchronized block in Java has not yet been treated in AspectJ or in any other Aspect-Oriented Programming framework. This paper develops a synchronized block join point model which al...
متن کاملCommunicating Threads for Java
The Java thread model provides support for multithreading within the language and runtime system of Java. The Java synchronization and scheduling strategy is poorly specified and turns out to be of unsatisfactory real-time performance. The idea of Java is to let the underlying operating system specify the synchronization and scheduling principles. This may possibly result in different behavior ...
متن کاملThread Synchronization Policies in DrJava
The Architecture of DrJava DrJava is a pure Java application involving two Java Virtual Machines (JVMs): (i) a master JVM that supports the user interface, the DrJava editor, and DrJava compilation; and (ii) a slave JVM that runs the interpreter and unit tests. DrJava currently uses the Java RMI library to support communication between the master and slave JVMs. In the future, a lighter weight ...
متن کاملBicolanoMT: a Formalization of Multi-Threaded Java at Bytecode Level
This paper describes a formalization of multi-threaded Java bytecode in Coq. The formalization builds on the existing Bicolano formalization for sequential Java bytecode – which captures basically all aspects of sequential bytecode supported by the CLDC (Java for mobile phones) platform. We use a special extension framework to extend the existing formalization in a systematic way. The formaliza...
متن کاملEfficiency of Thread-Parallel Java Programs from Scientific Computing
Many applications from scientific computing can benefit from object-oriented programming techniques because of their flexible and modular program development support. On the other hand, acceptable execution time can often only be reached by using a parallel machine. We investigate the support of Java for parallel execution. By using Java’s thread mechanism we study how basic numerical methods c...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- Softw., Pract. Exper.
دوره 31 شماره
صفحات -
تاریخ انتشار 2001