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

多线程同步数据处理方法研究
引用本文:李新三,赵丽丽,王明建,徐利国.多线程同步数据处理方法研究[J].计算机与网络,2011(18):47-49.
作者姓名:李新三  赵丽丽  王明建  徐利国
作者单位:第二炮兵青州士官学校,山东青州262500
摘    要:线程处理使C#程序能够执行并发处理,以便可以同时执行多个操作。描述了线程状态,阐述了利用C#进行程序设计时线程同步数据处理的几种方式:使用监视器来同步变量的访问、使用事件来同步线程和使用Mutex同步多个对象并避免锁死,多线程同步数据处理方法能避免多线程数据处理时出现的线程同步错误.

关 键 词:线程  数据处理  应用程序  事件

Methods of Data Processing in Multi-thread Synchronization
LI Xin-san,ZHAO Li-li,WANG Ming-jian,XU Li-guo.Methods of Data Processing in Multi-thread Synchronization[J].China Computer & Network,2011(18):47-49.
Authors:LI Xin-san  ZHAO Li-li  WANG Ming-jian  XU Li-guo
Affiliation:(The Second Artillery Qingzhou Sergeant's School, Qingzhou Shandong 262500, China)
Abstract:C# program could process multiple requests in parallel with multithread method so as to execute simultaneously several operations. The paper describes the state of thread, and illustrates some methods of data processing in multi-thread synchronization by using C# for program design, for example, using Monitor to make variable access be synchronous, using events to make threads be synchronous, and using Mutex to make multiple objects be synchronous and avoid locking. The multi-thread synchronous data processing method can avoid the thread synchronization error in multi-thread data processing.
Keywords:thread  data processing  application program  event
本文献已被 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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