摘要
在计算机操作系统中,同步的实质就是进程通过共享系统资源的方式相互协作,共同完成一项具体的操作。而实现这一同步问题需要借助于多线程编程技术和方法,用此技术来模拟实现经典的生产者-消费者、读者-写者问题,可以改变传统的以进程为单位的编程技术和方法,优化算法的内部结构,提高算法的效率。
In the computer operating system,the essence of synchronization is that the process cooperates with each other by sharing the resources of the system to perform a specific operation.And it needs the help of multi thread programming technology and method to realize the synchro?nization problem,using this technology to simulate the classic problem of the producer and consumer,reader and writer,it can change the traditional programming techniques and methods,optimize the internal structure of the algorithm,improve the efficiency of the algorithm.
作者
李乃健
田纪宏
胥国伟
齐英杰
厉群
LI Nai-jian;TIAN Ji-hong;XU Guo-wei;QI Ying-jie(School of Medical Information Engineering,Jining Medical University,Rizhao 276825)
出处
《现代计算机》
2018年第6期57-61,共5页
Modern Computer
基金
济宁医学院大学生创新训练计划项目(No.cx2015070)
关键词
进程
同步
多线程
算法
Process
Synchronization
Multithreading
Algorithm