文件名称:110104010104
- 所属分类:
- 操作系统开发
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2015-12-17
- 文件大小:
- 5.05mb
- 下载次数:
- 0次
- 提 供 者:
- 曾**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
解决的主要问题
(1)MFC界面设计
(2)模拟生产者消费者的互斥操作
(3)各信号量及互斥体的使用
线程
线程是程序独立运行的基本单位,一个程序通过执行多个线程可以提高机器本身资源的利用率,同时也可以完成多任务并行运行的操作,多线程可以实现并行处理,避免了某项任务长时间占用CPU时间。
互斥体
互斥体与临界区很相似,但是使用时相对复杂一些,它不仅可以在同一应用程序的线程间实现同步,还可以在不同的进程间实现同步,从而实现资源的安全共享。
信号量
信号量是一个在一定范围内变化的整形数据,用来表示一种临界资源,线程通过信号量的值来确定自己的状态是执行还是挂起,各线程间也是通过信号量机制来协调运行顺序一起完成任务,信号量的用法和互斥的用法很相似,不同的是它可以同一时刻允许多个线程访问同一个资源。-The main problem to solve
(1) MFC interface design
(2) Analog producers and consumers of mutual exclusion
Use (3) The semaphore and mutex
Thread
A thread is the basic unit program run independently of a program by executing multiple threads can improve the utilization of resources in the machine itself, but can also run complete operating multi-tasking, multi-threaded parallel processing can be realized, avoiding a task for a long time CPU time.
Mutex
Mutex and critical section is very similar, but the use of relatively complex, it can only be implemented in the threads of the same application synchronization, it can also achieve synchronization between different processes, enabling secure sharing of resources.
signal
Semaphore is a change in a certain range of shaping data used to represent a critical resource, a thread to determine their status through the value of the semaphore is d or suspended, it is to coordinate between the various threads run sequentially through sema
(1)MFC界面设计
(2)模拟生产者消费者的互斥操作
(3)各信号量及互斥体的使用
线程
线程是程序独立运行的基本单位,一个程序通过执行多个线程可以提高机器本身资源的利用率,同时也可以完成多任务并行运行的操作,多线程可以实现并行处理,避免了某项任务长时间占用CPU时间。
互斥体
互斥体与临界区很相似,但是使用时相对复杂一些,它不仅可以在同一应用程序的线程间实现同步,还可以在不同的进程间实现同步,从而实现资源的安全共享。
信号量
信号量是一个在一定范围内变化的整形数据,用来表示一种临界资源,线程通过信号量的值来确定自己的状态是执行还是挂起,各线程间也是通过信号量机制来协调运行顺序一起完成任务,信号量的用法和互斥的用法很相似,不同的是它可以同一时刻允许多个线程访问同一个资源。-The main problem to solve
(1) MFC interface design
(2) Analog producers and consumers of mutual exclusion
Use (3) The semaphore and mutex
Thread
A thread is the basic unit program run independently of a program by executing multiple threads can improve the utilization of resources in the machine itself, but can also run complete operating multi-tasking, multi-threaded parallel processing can be realized, avoiding a task for a long time CPU time.
Mutex
Mutex and critical section is very similar, but the use of relatively complex, it can only be implemented in the threads of the same application synchronization, it can also achieve synchronization between different processes, enabling secure sharing of resources.
signal
Semaphore is a change in a certain range of shaping data used to represent a critical resource, a thread to determine their status through the value of the semaphore is d or suspended, it is to coordinate between the various threads run sequentially through sema
(系统自动生成,下载前可以参看下载内容)
下载文件列表
110104010104\Multi_Buffer\Multi_Buffer.rc
............\............\Release\Multi_Buffer.res
............\............\.......\Multi_Buffer.pch
............\............\.......\vc60.idb
............\............\.......\StdAfx.obj
............\............\.......\Multi_BufferDlg.obj
............\............\.......\Multi_Buffer.obj
............\............\.......\Multi_Buffer.exe
............\............\Multi_Buffer.opt
............\............\Multi_BufferDlg.cpp
............\............\Multi_Buffer.dsp
............\............\Multi_Buffer.clw
............\............\ReadMe.txt
............\............\Multi_Buffer.h
............\............\Multi_Buffer.cpp
............\............\Multi_Buffer.aps
............\............\Resource.h
............\............\StdAfx.h
............\............\StdAfx.cpp
............\............\res\Multi_Buffer.rc2
............\............\...\Multi_Buffer.ico
............\............\Multi_BufferDlg.h
............\............\Multi_Buffer.dsw
............\............\Multi_Buffer.ncb
............\............\Debug\Multi_Buffer.res
............\............\.....\vc60.idb
............\............\.....\Multi_Buffer.pch
............\............\.....\vc60.pdb
............\............\.....\StdAfx.sbr
............\............\.....\StdAfx.obj
............\............\.....\Multi_Buffer.sbr
............\............\.....\Multi_BufferDlg.sbr
............\............\.....\Multi_BufferDlg.obj
............\............\.....\Multi_Buffer.obj
............\............\.....\Multi_Buffer.ilk
............\............\.....\Multi_Buffer.exe
............\............\.....\Multi_Buffer.bsc
............\............\.....\Multi_Buffer.pdb
............\............\Multi_Buffer.plg
............\软件使用说明.doc
............\操作系统课程设计报告.doc
............\Multi_Buffer\Release
............\............\res
............\............\Debug
............\Multi_Buffer
110104010104