文件名称:OS_project_Thread
- 所属分类:
- 系统编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 979kb
- 下载次数:
- 0次
- 提 供 者:
- Xiw***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
Purpose
Aim to setup a small system above the OS layer , implement the message queue of process or thread and simulate the function of watchdog used to detect the deadlock of the system.
- introduction
1. Purpose
Aim to setup a small system above the OS layer , implement the message queue of process or thread and simulate the function of watchdog used to detect the deadlock of the system.
2. Method
Using window API to create serval thread and create a message queue for each thread to control the message exchange between the different treads.
3. Files
Projectmain.h------ structs , enums ,and claim of functions
ThreadSemaphore.c------- extend the Windows semaphore API
ThreadQueue.c------- message queue file (send to, receive from ,create and destroy queue )
Threadfr a me.c-- 1) create all the task for test
2) control the message handling
3) control the thread running
4)functions of watchdog
5) a hardware timer simulator to create timeout message every 1 sec
4 task :
Thread_IDLE,-- lowest prority , interact with user and obtain a semaphore which will be waitted by Thread_LOST later
Aim to setup a small system above the OS layer , implement the message queue of process or thread and simulate the function of watchdog used to detect the deadlock of the system.
- introduction
1. Purpose
Aim to setup a small system above the OS layer , implement the message queue of process or thread and simulate the function of watchdog used to detect the deadlock of the system.
2. Method
Using window API to create serval thread and create a message queue for each thread to control the message exchange between the different treads.
3. Files
Projectmain.h------ structs , enums ,and claim of functions
ThreadSemaphore.c------- extend the Windows semaphore API
ThreadQueue.c------- message queue file (send to, receive from ,create and destroy queue )
Threadfr a me.c-- 1) create all the task for test
2) control the message handling
3) control the thread running
4)functions of watchdog
5) a hardware timer simulator to create timeout message every 1 sec
4 task :
Thread_IDLE,-- lowest prority , interact with user and obtain a semaphore which will be waitted by Thread_LOST later
(系统自动生成,下载前可以参看下载内容)
下载文件列表
OS_project_Thread
.................\OS_project_Thread.ncb
.................\OS_project_Thread.sln
.................\Thread_OS
.................\.........\Debug
.................\.........\.....\BuildLog.htm
.................\.........\.....\threadFrame.obj
.................\.........\.....\ThreadQueue.obj
.................\.........\.....\ThreadSemaphore.obj
.................\.........\.....\Thread_OS.exe
.................\.........\.....\Thread_OS.ilk
.................\.........\.....\Thread_OS.pdb
.................\.........\.....\vc70.idb
.................\.........\.....\vc70.pdb
.................\.........\projectmain.h
.................\.........\threadFrame.cpp
.................\.........\ThreadQueue.cpp
.................\.........\ThreadSemaphore.cpp
.................\.........\Thread_OS.vcproj
.................\OS_project_Thread.ncb
.................\OS_project_Thread.sln
.................\Thread_OS
.................\.........\Debug
.................\.........\.....\BuildLog.htm
.................\.........\.....\threadFrame.obj
.................\.........\.....\ThreadQueue.obj
.................\.........\.....\ThreadSemaphore.obj
.................\.........\.....\Thread_OS.exe
.................\.........\.....\Thread_OS.ilk
.................\.........\.....\Thread_OS.pdb
.................\.........\.....\vc70.idb
.................\.........\.....\vc70.pdb
.................\.........\projectmain.h
.................\.........\threadFrame.cpp
.................\.........\ThreadQueue.cpp
.................\.........\ThreadSemaphore.cpp
.................\.........\Thread_OS.vcproj