摘要
简单介绍了Windows环境下进行多线程编程的意义,分析了多线程机制的原理和多线程中资源共享所带来的问题,重点讨论了C++Builder6环境下开发多线程应用程序这一问题,对多线程的资源共享和并发控制技术进行了深入的分析,并通过实现生产者-消费者问题、读者-写者问题以及哲学家共餐问题等经典进程同步问题更好地理解程序并发过程中的同步机制和交互通信机制及其实现方法。
The uses of multi-threaded programming in Windows are simply introduced. Multithread mechanism and the problems during multithread resource share are analyzed. Multithread application program methods in C++Builder6 environment are discussed in detail. Meanwhile the resource-sharing and synchronizing control technique are analyzed, which help to understand the concurrent mechanism based on synchronization and interactive communication mechanism and its implementations by realizing producer-customer problem, reader-writer problem and dinning philosophers problem.
出处
《计算机工程与设计》
CSCD
北大核心
2006年第12期2248-2250,2253,共4页
Computer Engineering and Design