好文档 - 专业文书写作范文服务资料分享网站

多线程同步数据处理方法研究

天下 分享 时间: 加入收藏 我要投稿 点赞

多线程同步数据处理方法研究

李新三;赵丽丽;王明建;徐利国

【期刊名称】《计算机与网络》 【年(卷),期】2011(037)018

【摘要】线程处理使C#程序能够执行并发处理,以便可以同时执行多个操作。描述了线程状态,阐述了利用C#进行程序设计时线程同步数据处理的几种方式:使用监视器来同步变量的访问、使用事件来同步线程和使用Mutex同步多个对象并避免锁死,多线程同步数据处理方法能避免多线程数据处理时出现的线程同步错误.%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. 【总页数】3页(47-49)

【关键词】线程;数据处理;应用程序;事件 【作者】李新三;赵丽丽;王明建;徐利国

【作者单位】第二炮兵青州士官学校,山东青州262500;第二炮兵青州士官学校,山东青州262500;第二炮兵青州士官学校,山东青州262500;第二炮兵青州士官

多线程同步数据处理方法研究

多线程同步数据处理方法研究李新三;赵丽丽;王明建;徐利国【期刊名称】《计算机与网络》【年(卷),期】2011(037)018【摘要】线程处理使C#程序能够执行并发处理,以便可以同时执行多个操作。描述了线程状态,阐述了利用C#进行程序设计时线程同步数据处理的几种方式:使用监视器来同步变量的访问、使用事件来同步线程和使用Mutex同
推荐度:
点击下载文档文档为doc格式
9g62j56g9h797950lpza3sk4u09qt500fl0
领取福利

微信扫码领取福利

微信扫码分享