[1]孟伟君 李龙海 付少锋 周利华.基于VC++和JAVA的多线程程序设计与实现[J].计算机技术与发展,2006,(04):35-37.
 MENG Wei-jun,LI Long-hal,FU Shao-feng,et al.Design and Implementation of Multithread Programming Based on VC + + and JAVA[J].,2006,(04):35-37.
点击复制

基于VC++和JAVA的多线程程序设计与实现()
分享到:

《计算机技术与发展》[ISSN:1006-6977/CN:61-1281/TN]

卷:
期数:
2006年04期
页码:
35-37
栏目:
智能、算法、系统工程
出版日期:
1900-01-01

文章信息/Info

Title:
Design and Implementation of Multithread Programming Based on VC + + and JAVA
文章编号:
1005-3751(2006)04-0035-03
作者:
孟伟君 李龙海 付少锋 周利华
西安电子科技大学多媒体技术研究所
Author(s):
MENG Wei-jun LI Long-hal FU Shao-feng ZHOU Li-hua
Multimedia Technology Institute , Xidian University
关键词:
多线程调度通信同步VC++JAVA
Keywords:
multithread schedule communication synchronization VC + + JAVA
分类号:
TP311.1
文献标志码:
A
摘要:
讨论了多线程的基本概念及应用场合,总结了以面向对象主流语言VC++和JAVA为工具的多线程程序设计实现方法。比较了两种语言在创建和凋度线程的差异,并分析了全局变量、自定义消息、等待/通知三种多线程间的通信机制。介绍了在VC++中用信号量、互斥体、事件和临界区四种对象实现和在JAVA中用Synckronized关键字实现的同步技术。最后,对改进多线程应用的性能和安全提出了一些策略。结论是多线程有利有弊,要合理使用。两种语言各有所长,根据应用而选
Abstract:
Discusses the concepts and application of multithread and presents design and implementation method with the tools VC + + and JAVA which are popular OOP languages. The differences about creating and scheduling threads are compared and three threads communication cation mechanisms, which are global, user defined message and wait/notify, are analyzed, And then, some synchronization techniques, which are semaphore, mutex, event and critical section used in VC+ + and synchronized key word used in JAVA, are introduced. At the end, some issues about performance and security are analyzed. The conclusions are that multithread tins some advantages and disadvantages and should be used rationally and that two languages also have theirs merits and should be chosen according to application oeeasioons

相似文献/References:

[1]龚向坚 邹腊梅 隆重.基于分布对象的虚拟网络实验系统设计与实现[J].计算机技术与发展,2010,(01):111.
 GONG Xiang-jian,ZOU La-mei,LONG Zhong.Design and Realization of Virtual Network Laboratory System Based on Distributing Object[J].,2010,(04):111.
[2]严颖 汪峥.单件生产实验系统控制及仿真的多线程实现[J].计算机技术与发展,2010,(02):197.
 YAN Ying,WANG Zheng.Multi- Thread- Based Implementation of Control and Simulation for an Experimental One - of- a - Kind Production System[J].,2010,(04):197.
[3]曹廷发 吉华 马江 付耀国.Linux/RTLinux下实时多线程实时性检测方法[J].计算机技术与发展,2010,(03):113.
 CAO Ting-fa,JI Hua,MA Jiang,et al.Real - time Performance Test Methods for Real - time Multi - thread Based Linux/RTLinux[J].,2010,(04):113.
[4]詹金兰 李翠华.模拟实验系统的可视化研究[J].计算机技术与发展,2009,(05):228.
 ZHAN Jin-lan,LI Cui-hua.Visualization Research on Simulation Experiment System[J].,2009,(04):228.
[5]黄辉 李革新 张华.连锁业务中远程数据传输的研究与实现[J].计算机技术与发展,2009,(08):169.
 HUANG Hui,LI Ge-xin,ZHANG Hua.Research and Implementation of Remote Data Transmission in Chain Business System[J].,2009,(04):169.
[6]苏成顺 李贞培.基于多线程的分段图像轮廓跟踪算法[J].计算机技术与发展,2009,(10):99.
 SU Cheng-shun,LI Zhen-pei.Algorithm for Multi- Segment Image Contour Following Based on Multithreading[J].,2009,(04):99.
[7]郭娟 许志才 方贤文.基于Petri网的Java多线程程序分析[J].计算机技术与发展,2009,(04):51.
 GUO Juan,XU Zhi-cai,FANG Xian-wen.Multi - Thread Analysis about Java Program Based on Petri Net[J].,2009,(04):51.
[8]张炯 吕紫旭 刘栋 金惠华.实时操作系统ThreadX剖析[J].计算机技术与发展,2008,(01):22.
 ZHANG Jiong,LU Zi-xu,LIU Dong,et al.Analysis of Real Time Operating System: ThreadX[J].,2008,(04):22.
[9]谢世环 徐中伟 胡天一.车站列控中心测试平台——通信仿真子系统研究[J].计算机技术与发展,2008,(01):243.
 XIE Shi-huan,XU Zhong-wei,HU Tian-yi.Study on Testing Platform for Train Control Center——Simulation of Communication Sub - System[J].,2008,(04):243.
[10]李钧 王忠群 刘涛.基于遗传编程的网格资源调度算法[J].计算机技术与发展,2008,(02):129.
 LI Jun,WANG Zhong-qun,LIU Tao.Grid Resource Scheduling Algorithm Based on Genetic Programming[J].,2008,(04):129.

备注/Memo

备注/Memo:
盂伟君(1971-)。男。陕西洛南人,硕士研究生,主要研究方向为多媒体技术及应用;周利华,教授,研究方向为多媒体技术和信息安全技术
更新日期/Last Update: 1900-01-01