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

Research on Methods of Data Processing in Multi-thread Synchronization

在线阅读下载全文

作  者:李新三 赵丽丽 王明建 徐利国 

机构地区:[1]第二炮兵青州士官学校,山东青州262500

出  处:《计算机与网络》2011年第18期47-49,共3页Computer & Network

摘  要:线程处理使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.

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

分 类 号:TP311.52[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象