搜索资源列表
thread
- 1 编写单进程多线程程序,实现一个线程A将另外一个线程B的从标准输入的字符串反序输出。 2 编写单进程多线程程序,用信号量实现一个线程A随机生成一个0-100的整数,另外一个线程B将此数平方后打印输出,要求每秒钟显示一次。 3 编写单进程多线程程序,用互斥锁实现一个线程A随机生成一个0-100的整数,另外一个线程B将此数平方后打印输出,要求每秒钟显示一次。-A single process writing multi-threaded program, implement a threa
ThreadAsynByEvent
- 开发环境是vs2005; 开发wince平台的线程同步(基于对话框的): 在本程序中我采用了4中不同的方法实现了线程的同步: 1)利用事件同步; 2)利用互斥同步; 3)利用临界区同步; 4)利用信号量同步。-Development environment is vs2005 development wince platform thread synchronization (dialog-based): In this program I used four diff
SemaphoreThreadSyn
- 使用信号量(Semaphore)实现线程的同步\SemaphoreThreadSyn\SemaphoreThreadSyn.rar,很不错的vc源码,有兴趣的朋友可以看看。-Using semaphores (Semaphore) to achieve thread synchronization \ SemaphoreThreadSyn \ SemaphoreThreadSyn.rar, very good vc source, interested friends can see.
OS-semaphore
- 在windows系统下的os平台中,各个任务间是通过信号量来同步共同资源的,本文就信号量机制进行了详细的讲解,-The os in the windows system platform, between the various tasks by semaphore to synchronize shared resources, this paper conducted a semaphore mechanism in detail,
Linux-semaphore
- 信号量的使用主要是用来保护共享资源,使得资源在一个时刻只有一个进程(线程)所拥有。-Semaphore is mainly used to protect the use of shared resources, making the resource at a time only one process (thread) owned.
Micrium-1138-sem-event
- UCOS 在ZLG开发板1138上的SEM(信号量)应用。可以跟踪理解ucos的信号量机制。环境:IAR -UCOS ZLG development board in 1138 on the Q (message queue) applications. Ucos can understand the message queue tracking mechanism. Environment: IAR
UCOS-II-basic-example-by-wuzhanmin
- 本人原创的UCOS II使用的基本例程。一些最基本的应用,如邮箱,信号量等,共9个例程,在神舟IV号开发板上验证通过-I use original UCOS II the basic routines. Some basic applications, such as mailboxes, semaphores, etc., a total of 9 routine, Shenzhou IV, the development board in the verification by
ucos_semaphore
- ucos信号量性能测试,基于GCC工具链,lpc24xx下的测试。-ucos semaphore performance test, based on GCC tool chain, lpc24xx under test.
Linux-program-design
- Linux 系统程序设计基础,进程,信号量,管道通信。-Linux system program design basis, process, the magnitude of the signal, communication pipeline.
IPC_Funs
- c++写的在linux环境下多线程间使用互斥锁、posix信号量和system v信号量,实现的通信程序。自己编写的,自己测试过。-written in c++ linux environment using multi-thread mutex locks, posix semaphores and system v semaphore, to achieve the communication program. I have written, and tested.
reader_writer.c
- 进程间通信中经典的读者-写者问题,用信号量实现同步和互斥。-Interprocess communication in the classic reader- writer problem, synchronization with semaphores and mutexes.
5509_BIOS
- 以5509芯片为硬件,详细示范了TI公司的BIOS实时操作程序的开发过程,用到了各种线程,各种对象,包括邮箱机制、信号量、SWI、TSK等多个小例子,有价值!-The 5509 chip for hardware, detailed demonstration of TI s BIOS real-time operation of the development process, used in a variety of thread
CPPMultithreadingProgramingPDF
- C++多线程编程 C和C++实务精选 周良忠翻译 讲解C++多线程 互斥 信号量等的经典书籍-c++ Multithreading Programing , C and C + + translator to explain the practical selection of Zhou Liangzhong C + + multi-threaded mutex and other classic books.
3.c
- 编写程序实现生产者-消费者问题。使用Linux的pthread线程库,创建2个生产者线程和2 个消费者线程。生产者线程计算当前的时间,把时间、第几次计算时间的序号(循环次 数)和线程ID作为一个消息,把消息放入缓冲区,消费者线程从缓冲区读出一个消息 并显示消息。缓冲区大小为5个,每个生产者线程生产10个消息,每个消费者线程消费 10个消息,即生产和消费分别为20次。 要求:2个生产者线程执行的代码是相同的(即执行同一函数),2个消费者线程也 一样。 提示: 生产者
ThreadSynBySemaphore
- Wince下线程的同步方法,采用信号量的方式来说实现的。-Wince the thread synchronization methods, the use of semaphores is the way to achieve.
pthread-manual
- 主要介绍了在linux环境下pthread的功能及使用情况,以及各个信号量的使用案例。-Introduces the pthread in linux environment function and usage, as well as the use of various semaphore case.
jctx
- 实验三 进程间通信 UNIX/LINUX系统的进程间通信机构(IPC)允许在任意进程间大批量地交换数据。本实验的目的是了解和熟悉LINUX支持的信号量机制、管道机制、消息通信机制及共享存储区机制。 -In Experiment 3, inter-process communication UNIX/LINUX system inter-process communication agencies (IPC) to allow large quantities in any exchang
VC6_Thread
- VC++6.0 线程同步: 临界区,事件,互斥,信号量-VC++6.0 thread synchronization: the critical area, events, mutexes, semaphores
p02
- 使用信号量的司机-售票员多线程通信模型实现。-Drivers use semaphore- conductor to achieve multi-threaded communication model.
vxworks-dead-lock
- 一个实现死锁的程序 使用两个线程 两个信号量 来实现 一个低优先级进程先semtake mutex1 .然后另个一高优先级的抢占后cpu后 分别semtake mutex2 和mutex1 然后低优先级又要semtake mutex2 -An implementation program with two threads deadlock two semaphores to implement a low-priority process first semtake mutex1. And th