摘要
从同步线程数量和同步方向角度把同步模型分为六种类型,即单线程-单线程单向同步、单线程-单线程循环双向同步、单线程-多线程单向全部同步、单线程-多线程单向部份同步、多线程-单线程单向全部同步和多线程-单线程单向部份同步。在Windows7+VS2012平台下,使用每线程一窗口的独立窗口过程函数独立处理窗口消息,实现同步线程之间输出无耦合,力求使同步验证简单直观。实践证明,模型分类简单,验证过程有效。
Divide the synchronization(hereinafter referred to as SYN) model into six types from the perspective of synchronous threads number and the SYN direction,including Single-Single Threads(SST) one-way SYN,SST two-way loop SYN,SingleMultiple Threads(SMT) one-way all SYN,SMT one-way partial SYN,MST one-way all SYN and MST one-way partial SYN.In the Windows7+VS2012 platform, with the method of one window per thread and its independent window process function to handle the window message,to achieve non-coupled output between the SYN threads, and strive to make SYN verification simple and intuitive.Practice prove that the model classification is simple and the verification process is effective.
出处
《电脑知识与技术》
2017年第9X期266-268,共3页
Computer Knowledge and Technology
基金
韶关学院校级科研项目(SY2016KJ20)
关键词
线程
进程
同步
并发
并行
thread
process
synchronization
concurrency
parallel