搜索资源列表
p-and-c
- 在Windows和Linux操作系统上,利用各自操作系统提供的Mutex和信号量机制(Win32 API或Pthreads),实现生产者/消费者问题-In the Windows and Linux operating systems, the use of their operating system provided Mutex and semaphore mechanism (Win32 API or Pthreads), to achieve the producer/consumer
pthread_sync_and_mutual
- linux多线程极大方便了程序编写,但同时必须考虑线程同步、互斥问题。 示例代码给出了利用信号量实现P、V操作,从而保证多线程同步、互斥。-linux multithread programming is very convenient, but we must pay attention to synchronization and mutual exclusion. The sample code shows us how to ensure multi-thread synch
ProductTest
- 编写生产者和消费者的问题,使用信号量机制。-The problem of producers and consumers prepared to use semaphore mechanism.
get_semaphore
- 如何使用信号量,对线程感兴趣的可以参考下。 很不错的demo-How to use the semaphore, the thread of interest can refer to. Very nice demo
Produce_Consume_Pthread
- 利用各自操作系统提供的Mutex和信号量机制(Win32 API或Pthreads),实现生产者/消费者问题-Provided by each operating system Mutex and semaphore mechanism (Win32 API or Pthreads), to achieve the producer/consumer problem
traffic1
- 模拟实现十字路口的交通灯管理系统逻辑,具体需求如下: 1、异步随机生成按照各个路线行驶的车辆。 例如: 由南向而来去往北向的车辆---- 直行车辆 由西向而来去往南向的车辆---- 右转车辆 由东向而来去往南向的车辆---- 左转车辆 。。。 2、 信号灯忽略黄灯,只考虑红灯和绿灯。 ·3、应考虑左转车辆控制信号灯,右转车辆不受信号灯控制。 ·4、具体信号灯控制逻辑与现实生活中普通交通灯控制逻辑相同,不考虑特殊情况下的控制逻辑。
char-driver-by-sem
- 一个字符驱动源码,基于信号量同步。亲自试验,可以运行。-A character-driven source code, semaphore-based synchronization. Test yourself, you can run.
Sem
- 用Win32中的信号量实现生产者-消费者问题-Use Win32 semaphore in the producer- consumer issues
vxworks-expriment-source-
- 嵌入式实时操作系统VxWorks实验教程(重庆大学通信工程学院),包含:多任务程序的创建和启动,时间片轮转调度,基于优先级抢占式调度,消息队列实现任务间的通信,使用二进制信号量来实现任务间的同步 ,使用互斥信号量来实现任务对共享资源的互斥访问,vxworks下任务间通信例程 等等。-Embedded real-time operating system VxWorks Experimental Course (Institute of Communication Engineering, Cho
rd
- 在Windows2000环境下,创建一个控制台进程,此进程包含n个线程。用这n个线程来表示n个读者或写者。每个线程按相应测试数据文件的要求进行读写操作。用信号量机制分别实现读者优先和写者优先问题。-In Windows2000 environment, create a console process, this process contains n threads. N threads with which to express n a reader or writer. Each threa
HDHNC_Bai_7_Nhom_15
- Critical Session with Sleep and Wakeup, use Semaphore-Critical Session with Sleep and Wakeup, use Semaphore
sem
- linux信号量使用方法,示例中包括源码和makefie,以及经过编译的文件,可以直接运行-linux semaphore usage, examples including source code and makefie, and compiled files that can be run directly
Dining-philosophers-problem
- 哲学家就餐问题 实现5个哲学家5支筷子的就餐问题涉及到AND型信号量,线程的阻塞唤醒切换功能-Dining philosophers problem to achieve five dining philosophers five chopsticks issues related to the AND-type semaphore, blocking thread switching wake
Stm32_ucos_3-1
- 在IAR环境中实现以下要求的编程(1)二个外部中断EINTB(KEY1)、EINTC(KEY2),三个任务A、B、C,优先级由低到高。 (2)A任务每运行一次使得第一组数码管的值增加1,调用延时函数为1s (3)B任务等待信号量bsem(初始值为0),中断INTB触发信号量bsem的发送。该任务每运行一次使得第二组数码管的值增加1,调用延时函数为0.5s (4)C任务等待信号量csem(初始值为0),中断INTC触发信号量csem的发送,该任务每运行一次使得某个发光二级管闪烁,调用延
SemaphoreThreadSyn
- vc 使用信号量(Semaphore)实现线程的同步\SemaphoreThreadSyn的程序源码,希望对大家有所帮助-vc using semaphores (Semaphore) to achieve thread synchronization \ SemaphoreThreadSyn the program source code, we hope to help
SemaphoreThreadSyn
- vc——使用信号量(Semaphore)实现线程的同步\SemaphoreThreadSyn的程序源码,值得一看!-vc- using semaphores (Semaphore) to achieve thread synchronization \ SemaphoreThreadSyn the program source code, worth a visit!
SemaphoreThreadSyn
- vc——使用信号量(Semaphore)实现线程的同步\SemaphoreThreadSyn的程序源码,值得一看!-vc- using semaphores (Semaphore) to achieve thread synchronization \ SemaphoreThreadSyn the program source code, worth a visit!
Semaphore
- windows下实现线程同步功能的小程序-thread synchronization windows to achieve a small program
thread
- 1 编写单进程多线程程序,实现一个线程A将另外一个线程B的从标准输入的字符串反序输出。 2 编写单进程多线程程序,用信号量实现一个线程A随机生成一个0-100的整数,另外一个线程B将此数平方后打印输出,要求每秒钟显示一次。 3 编写单进程多线程程序,用互斥锁实现一个线程A随机生成一个0-100的整数,另外一个线程B将此数平方后打印输出,要求每秒钟显示一次。-A single process writing multi-threaded program, implement a threa
Shared-Semaphore
- windRiver官方给出的程序实例,学习有帮助。-These example of codes is got from WR, that is useful to fans.