搜索资源列表
multi-thread
- linx多线程编程,实现一个多线程生产者消费者模型,用信号量处理线程间的同步和互斥问题。-Linx multithreaded programming, the realization of a multi thread producer consumer model, process synchronization and mutual exclusion problem among threads using signal volume
os
- linix哲学家问题,利用互斥信号量解决死锁。-linix philosophers problem, use mutex resolve the deadlock.
Java-xianchengtongbuhuchi
- Java线程间同步互斥,在实际的编程中,经常要处理线程间的同步互斥问题。Java 语言内在强大的多线程支持使得处理这类问题变得相对来说比较简单。本例将模仿经典的线程同步互斥例子——生产者和消费者问题,来演示 java 强大的多线程机制。生产者和消费者共享一个数据,当数据为0 时,消费者不可访问,生产者可访问数据,每次访问数据加1;当数据到达100 时,生产者唤醒消费者,同时自身不可访问数据,消费者可访问数据,每次访问数据减1,直到数据为0,消费者唤醒生产者,同时自身不可访问数据,如此循
09-Queue
- 使用一个互斥量和一个信号量来对一个队列的简单数据元素进行控制,是队列具备线程安全-Using a mutex and a semaphore to queue for a simple data elements to control the queue thread safe
ym_vcpp-MultiThread
- VC++ 多线程与聊天室程序的编写,多线程应用中容易出现的问题。互斥对象的讲解,如何采用互斥对象来实现多线程的同步。如何利用命名互斥对象保证应用程序只有一个实例运行。应用多线程编写网络聊天室程序。-zhe fangmian ,wo jiu bu xie liao
Mutex-routines
- 互斥体的新手例程,帮助新手了解互斥体释放、创建、与打开。-Novice routine mutex, the mutex is released to help the novice to understand, create, and open.
hu-chi-ti-duo-kai
- B-75.易疯了!编程实现互斥体无限多开,未用驱动。- F:. \ B-75 easy crazy! Programming mutex infinite open, unused drivers. \ B-75. Easy crazy! Programming mutex infinite open, unused drivers.
runonly
- 单实例运行技术,通过检测互斥对象来实现.Createmutex-run only
pi
- linux下计算PI值,创建线程、互斥锁,可以借鉴一下-PI values calculated under linux, create threads, mutexes, we can draw
Mutex
- 程序互斥代码,防止一个程序多次启动,很有效,加在工程文件中效果很好。-Program mutex code, to prevent a program started several times, very effective, plus good results in the project file.
dxc
- 处理多线程问题,具体是处理生产者与消费者的问题,有关学习互斥量信号量的简单知识-Deal with multi-threading issues, in particular the problem of treatment of producers and consumers, the simple knowledge about learning mutex semaphore
OS_test
- windows下线程操作,例子,包含线程创建,互斥锁,信号量,消息队列的封装等-Thread windows operating examples, including thread creation, mutexes, semaphores, message queues, packaging, etc.
producer-customer
- linux中的多线程编程,信号量处理线程间的同步和互斥问题-In Linux multithreaded programming, the signal processing problem of synchronization and mutex between threads
prod
- C++实现互斥量通信,生产者和消费者线程之间通过互斥量实现通信-C++ implementation of the mutex communication between producers and consumers to communicate via the mutex thread
DeadLock
- 实现了死锁 正在学习进程同步的可以看一下 就知道什么是互斥锁了-Deadlocks are learning to achieve a synchronization process can see, we know what is the mutex
ProcessManager
- 1.进程的创建 编写一段程序,使用系统调用fork()创建两个子进程。当此程序运行时,在系统中有一个父进程和两个子进程活动。让每一个进程在屏幕上显示一个字符:父进程显示字符“a”;子进程分别显示字符“b”和字符“c”。试观察记录屏幕上的显示结果,并分析原因。 2.进程的控制 修改已有程序,将每个进程输出一个字符改为每个进程输出几行字符,再观察程序执行时屏幕上的现象,并分析原因。 如果在程序中使用系统调用lockf()来给每一个进程加锁,可以实现进程之间的互斥,观察并分析出现的现象
V5-302_FreeRTOS
- freertos系统下编写的打印程序,使用了信号互斥功能。-it s a print program written under the freertos system, it used the function of signal mutex
queue
- 静态数组循环队列操作,并有多线程访问互斥机制。-Static array circular queue operation, and multiple threads to access the mutex mechanism.
02mutex
- Linux 下的 互斥锁的操作,保证的用的进程的同步-Linux under the mutex operation, ensure that the use of process synchronization
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 #