Analysis and Improvement for Synchronous Thread Model Based on Java

Wen-yu CHEN,Fu CHEN,Sheng-ji YU,Shi-xin SUN
DOI: https://doi.org/10.3969/j.issn.1001-0548.2010.03.023
2010-01-01
Abstract:Java supports threading at language level. In order to synchronize, Java provides keyword ″synchronized″ and mechanisms like wait() for Object, however, the potential imperfectness of the mechanisms may trigger unpredictable results. Currently, ″Band Aid″ class library is often used to solve the synchronize problem of Java thread model, but it is hard to optimize the class library. The paper discusses drawbacks of Java threading mechanism, extends the grammar of synchronized keyword for accepting multiple parameters and a timeout callback; redefines wait() method for returning a boolean variable to solve the timeout detection issue. The synchronize issue is solved by using syntax extension methods to guarantee the stability, reliability and optimized attributes of the programs developed by Java threads.
What problem does this paper attempt to address?