首页 | 本学科首页   官方微博 | 高级检索  
     

Java 虚拟机用户级多线程的设计与实现
引用本文:丁宇新,程虎.Java 虚拟机用户级多线程的设计与实现[J].软件学报,2000,11(5):701-706.
作者姓名:丁宇新  程虎
作者单位:中国科学院软件研究所,北京,100080
基金项目:本文研究得到国家"九五"重点科技攻关项目基金(No.96-737)资助.
摘    要:详细介绍了国产开放系统平台Java虚拟机多线程的设计与实现.在线程调度上,采用带有独立队列的静态级别轮巡调度,较好地解决了独立循环线程的调度问题.对于线程的同步,采用了哈希混合锁的设计方案.实验结果证明,该锁具有空间小、执行效率高等特点.

关 键 词:Java  虚拟机  线程.
收稿时间:1999/3/23 0:00:00
修稿时间:1999/5/26 0:00:00

Design and Implementation of User Level Multi-Threads in Java Virtual Machine
DING Yu-xin and CHENG Hu.Design and Implementation of User Level Multi-Threads in Java Virtual Machine[J].Journal of Software,2000,11(5):701-706.
Authors:DING Yu-xin and CHENG Hu
Affiliation:Institute of Software\ The Chinese Academy of Sciences\ Beijing\ 100080
Abstract:In this paper, the authors discuss the design and implementation of Java multi-threads. A new thread scheduling algorithm, named Preemptive Round-Robin Scheduling with a Free Queue, is presented. Under this policy threads in the free queue are not assigned with a constant priority. Their priority is the same as the highest-priority threads which are in running state. The highest-priority threads and the threads in the free queue are time-sliced scheduled. This algorithm solves the scheduling problem for independent looping thread. To improve the efficiency of thread synchronization, a new design for object lock is presented. It is called the Mixed Hash Object Lock. This design is a tradeoff between the lock efficiency and its space. The experimental results have proved that the design is feasible. Compared with the traditional design, the efficiency for locking and unlocking is high and the space allocated to lock is small.
Keywords:Java  virtual machine  thread  
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《软件学报》浏览原始摘要信息
点击此处可从《软件学报》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号