检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:陈文宇[1] 陈福[1] 余盛季[1] 孙世新[1]
机构地区:[1]电子科技大学计算机科学与工程学院,成都610054
出 处:《电子科技大学学报》2010年第3期430-434,共5页Journal of University of Electronic Science and Technology of China
基 金:国家863计划(2007AA01Z131);电子科技大学青年基金(L08010601JX0754)的资助
摘 要:目前普遍采用急救包(Band-Aid)类库的方式解决Java线程模型存在的同步问题,但类库中的代码很难或无法实现优化。该文针对Java同步线程模型的缺陷,扩展synchronised关键字语法,使它支持多个参数和能接受一个超时说明;重新定义wait()使它返回一个boolean变量来解决超时检测问题;通过扩展语法方法解决了同步问题,以确保使用Java线程所开发的程序的稳定、可靠和可优化。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.
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:13.58.164.55