搜索资源列表
OS_project_Thread
- 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 s
VxWorksForNewStudent
- 讲解了VxWorks开发环境Tornado2.2的基本应用方法。包括工程创建,config.h配置,编译器配置,FTP设置,组件配置,库文件生成,还有个互斥信号量的例子。-VxWorks development environment on a basic application Tornado2.2. Including works to create, config.h configuration, compiler configuration, FTP settings, componen
Thread_Semaphore
- pthread.h semaphore.h pthread_mutex_t,PTHREAD_MUTEX_INITIALIZER, sem_t semaphore
semaphore-(PV-opreate)
- 信号量PV操作的封装函数,包括一个.c文件和.h文件 用于进程间通信的同步.-simplified sem_wait and sem_post function
dma
- /* dma.h - DMA (direct memory access) header */ /* Copyright 1984-1992 Wind River Systems, Inc. */ /* modification history -------------------- 01e,22sep92,rrr added support for c++ 01d,04jul92,jcf cleaned up. 01c,26may92,rrr the
shiyan2
- 哲学家进餐问题 #include<stdio.h> #include<semaphore.h> #include<pthread.h> //宏定义信号量个数为5,宏定义0表示思考,宏定义1表示饿,宏定义2表示吃,宏定义(ph_num+4) N表示左,宏定义(ph_num+1) N表示右 #define N 5 #define THINKING 0 #define HUNGRY 1 #define EATING 2 #
readerwriter
- 读者写者问题C++解法,使用互斥信号量,写者线程优先,共有3个读者2个写者-Similar to the barbers problem,the program use semaphore to solve the reader/writer problem.Two semaphores are involved:m_h, h,used as a counter and mutex between 2 writers.Main function create 3 reader thread an