搜索资源列表
philo
- 用pthread实现哲学家问题,利用信号量实现同步。
base64-des-shmem-seg
- 包括BASE64编码的C语言实现,DES加密的C实现,共享内存,信号量的C实现
shm_sem
- 结合共享内存,信号量,并模拟P,V操作,有两个程序,一个是写,一个是读出来显示
虚拟存储器的内存管理
- 使用Windows2000/XP的API函数,编写一个包含两个线程的进程,一个线程用于模拟内存分配活动,一个线程用于跟踪第一个线程的内存行为,而且要求两个线程之间通过信号量实现同步。模拟内存活动的线程可以从一个文件中读出要进行的内存操作-Windows2000/XP use of the API functions, including the preparation of a two-threaded process, a thread used to simulate memory allo
semaphores
- 一个在linux下利用QT库自带的信号量的使用例子。-using QT for onboard signal example of the use of volume.
videoserver.rar
- 流媒体服务器端源码,可以很好地了解流媒体服务器的结构,并对linux编程中信号量的理解有很大好处,The source code of Streaming server. You can unsderstand streaming server well through it.
Semaphore.rar
- 信号量的类封装,适合C++开发,通过此类,能够直接对信号量进行创建、关闭等操作开发。,Semaphore class package for C++ development, through such, can be carried out directly on the semaphore creation, closure, and so operate the development.
12_shm
- Linux 下进程间通信实例之一——共享内存 使用了信号量用于进程间的同步-Linux, one example of inter-process communication- shared memory semaphore used for synchronization between processes
com_test
- linux/unix下使用unix域套接字通信与使用共享内存+信号量通信方式的用时测试比较代码。-linux/unix use unix domain socket communication and the use of shared memory+ semaphore method of communication when the test code.
read_write
- 分别采用信号量,信号灯,条件变量实现的读者--写者方法。-Using semaphores, signal, variable conditions of the realization of the readers- to write those methods.
shared-memory
- 利用信号量,锁,共享内存来实现线程同步的很好的例子-Using semaphores, locks, shared memory to achieve a good example of thread synchronization
ipc
- 这是自己学习进程间通信时敲得代码,有共享内存、管道、信号量、消息队列,互斥锁等的典型用法-This is the communication between their own learning process when the knock code, the typical usage of the shared memory, pipes, semaphores, message queues, mutexes.
ipc
- ipc通信,哲学家就餐问题 采用信号量控制-ipc communications, dining philosophers problem using semaphores control
driver_conductor.c
- 进程间通信中经典的司机-售货员问题,用信号量实现进程间通信。-Interprocess communication in the classic driver- salesman problem, with the amount of inter-process communication signals.
barber(2)
- 理发师问题的信号量解决方法实现,基于C语言编写-Semaphore barber problem solution implementation, based on C language
ProducerandConsumerProblem
- 用多进程同步方法解决生产者-消费者问题 设计目的:通过研究Linux 的进程机制和信号量实现生产者消费者问题的并发控制. 说明:有界缓冲区内设有20个存储单元,放入/取出的数据项设定为1-20这20个整型数. 设计要求:(1)每个生产者和消费者对有界缓冲区进行操作后,即时显示有界缓冲区的全部内容,当前指针位置和生产者/消费者县城的标识符.(2)生产者和消费者各有两个以上.(3)多个生产者或多个消费者之间须有共享对缓冲区进行操作的函数代码.-Synchronous multi-process so
Linux-IPC.tar
- 资源中包含了Linux进程间通信的例子,同时有源文件和可执行文件。 源码主要包含了Linux下IPC机制的本地进程通信方式,包含了IPC共享内存,IPC信号量,IPC消息队列的实现,以及Linux下判断进程退出原因的示例程序。因为是做毕设学习时的练习程序,因此程序有详细的注释。(注意,每种通信方式需要在同时两个终端中查看验证,才可以看出效果,注意查看源码注释)-the source code included in the copressed package shows how IPC wo
Linux_Kernel
- Linux中各种内核态程序的编写,这是某个人的编程心得,里面有源代码,内容涉及互斥锁、信号量、多线程等,很不错的,值得参考!-Linux Kernel in a variety of procedures for the preparation of state, this is a personal experience of programming, which source code, which relates to mutual exclusion locks, semaphores,
sem
- 在类unix中可以方便使用的封装后的信号量操作的接口。-In unix-type can be user-friendly package of the semaphore after the operation interface.