作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2007, Vol. 33 ›› Issue (10): 70-72. doi: 10.3969/j.issn.1000-3428.2007.10.025

• 软件技术与数据库 • 上一篇    下一篇

一种基于虚拟机技术的并发程序实现方法

杜大威1,揭安全2   

  1. (1. 江西师范大学软件学院,南昌 330022;2. 江西师范大学计算机信息工程学院,南昌 330022)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2007-05-20 发布日期:2007-05-20

Realization Method of Concurrent Program Based on Virtual Machine Technique

DU Dawei1, JIE Anquan2   

  1. (1. Software College, Jiangxi Normal University, Nanchang 330022; 2. Computer Science and Engineering Information College, Jiangxi Normal University, Nachang 330022)
  • Received:1900-01-01 Revised:1900-01-01 Online:2007-05-20 Published:2007-05-20

摘要: 基于一种虚拟机设计思想,用C语言实现了一个虚拟机平台,通过在虚拟机中加入管理程序以实现对用户作业的并发控制。该方法提供了利用串行程序设计语言进行并发程序开发的一种实现方法。通过实验证明不通过机器低层及硬件的手段也能有效地在顺序执行的平台上实现并发程序。

关键词: 并发, 虚拟机, 进程

Abstract: This paper introduces the realization of the concurrency program based on technology of virtual machine, and realizes a platform of virtual machine using C language in order to achieve the concurrency of clients’ task after adding the control process in it to get the control of concurrency. The test which is under a number of processes and complex relation of semaphores’ relies the results are all right. The test shows concurrency can be realized in platform which executes in linear without using the lower level and hardware.

Key words: Concurrency, Virtual machine, Procedure

中图分类号: