搜索资源列表
thread
- 1 编写单进程多线程程序,实现一个线程A将另外一个线程B的从标准输入的字符串反序输出。 2 编写单进程多线程程序,用信号量实现一个线程A随机生成一个0-100的整数,另外一个线程B将此数平方后打印输出,要求每秒钟显示一次。 3 编写单进程多线程程序,用互斥锁实现一个线程A随机生成一个0-100的整数,另外一个线程B将此数平方后打印输出,要求每秒钟显示一次。-A single process writing multi-threaded program, implement a threa
msg
- linux c 信号量 使用例子 信号量锁,适合初学者-linux c examples of the use semaphore semaphore lock, suitable for beginners
os
- linix哲学家问题,利用互斥信号量解决死锁。-linix philosophers problem, use mutex resolve the deadlock.
thread
- 线程的互斥,互斥锁、条件变量、信号量、线程创建、线程等待、线程退出-Mutex thread, mutex, condition variables, semaphores, thread creation, thread waits, the thread exits
project
- 利用信号量方法进行哲学家就餐问题的死锁避免,把哲学家分为三种状态,思考,饥饿,进食,仅当一个哲学家左右两边的筷子都可用时,才允许他拿筷子,并且一次拿到两只筷子,否则不拿-Use semaphores method dining philosophers problem of deadlock avoidance, the philosopher into three states, thinking, hunger, eating only when both sides of a philos