摘要
由于多线程具有并发执行、资源共享、切换时CPU资源利用率低等优点,而被广泛使用。然而,其并发执行的特点也是容易引起安全问题的根源。因为并发执行容易导致"竞争"现象。从安全问题作为切入点,介绍一种利用单线程模拟多线程的方法,具体分析其原理、算法和使用,避免多线程引发的问题。
Muhi-thread is widely used because of its subsequent implement, sharing resource and the lower utilization ratio of CPU resource at the time of switching thread, etc. However, just its subsequent implement is the reason of easily inducing the security issue. Subsequent implement easily lead to the phenomena of "competition". Discusses the security issue of multithread. By this discussion, introduces a simulation of multi-thread using single thread will be introduced in order to avoiding the security issue caused by multi-thread. Analyses the theory and arithmetic, then introduces the using of method.
出处
《现代计算机》
2009年第7期118-120,共3页
Modern Computer
关键词
进程
多线程
安全性
模拟
Process
Thread
Security
Simulation