-
这是一个电梯模拟器,使用操作系统的概念叫互斥实现一..
it s a lift simulator, use operating system concept call mutex to implenment a lift. I do it prefectly.-it sa lift simulator, use operating system concept call mutex to implenment a lift. I do it prefectly.
- 2022-01-24 15:55:57下载
- 积分:1
-
页面置换算法 先进先出、最近最久未使用、最佳页面置换算法...
页面置换算法 先进先出、最近最久未使用、最佳页面置换算法-FIFO page replacement algorithms, the recent use of the most long-lost, the best page replacement algorithm for
- 2023-06-21 10:20:03下载
- 积分:1
-
C语言精华例题,读懂了这14个例题,你的C语言水平将有质的飞跃!所有代码均正确无误!...
C语言精华例题,读懂了这14个例题,你的C语言水平将有质的飞跃!所有代码均正确无误!-C language essence of excellence, understood that 14 of excellence, your C language level will be a qualitative leap! All of the code are correct!
- 2022-02-27 05:03:54下载
- 积分:1
-
用C语言编写和调试一个简单的进程调度程序
用C语言编写和调试一个简单的进程调度程序-C language writing and debugging a simple process scheduler
- 2022-07-13 20:02:15下载
- 积分:1
-
操作系统兔子吃草
#include "stdafx.h"
#include
#include
#include
/*信号量的定义,它是负责协调各个线程, 以保证它们能够正确、合理的使用公共资源。 用于控制进程间的同步与互斥*/
typedef HANDLE Semaphore;
Semaphore g_semBuffer,g_semGlass, g_mutex; //mutex 为互斥锁
// 利用 Windows 下的 API 函数(视窗操作系统应用程序接口)来定义 P、V 操作
#define P(S) WaitForSingleObject(S,INFINITE)
#define V(S) ReleaseSemaphore(S,1,NULL)
#define rate 1000
#define CONSUMER_NUM 4 // 消费者个数
#define PRODUCER_NUM 4 // 生产者个数
#define BUFFER_NUM 4 // 缓冲区个数
char *thing[4]={"glass1","glass2","glass3","glass4"};
//公共的队列缓冲区
struct Buffer
{
int product[BUFFER_NUM];
int front,rear;
}g_buf;
//兔子线程
DWORD WINAPI Rabbit(LPVOID para)
{
int i =*(int*)para; //第 i 只小白兔&
- 2022-05-23 06:18:02下载
- 积分:1
-
ucos_ii,源盘,也许是对你有用如果你想学习UCOSII。
ucOS_ii,source from disk,Maybe it s useful for you if you would studt ucosii.
- 2023-02-26 13:30:03下载
- 积分:1
-
在Linux下实现文件的拷贝,多线程实例,设备驱动的编写,文件系统的处理,进程管理器的部分功能实现...
在Linux下实现文件的拷贝,多线程实例,设备驱动的编写,文件系统的处理,进程管理器的部分功能实现
- 2022-03-06 00:26:04下载
- 积分:1
-
bankers algorithm, against textbook example of the Solution
银行家算法,针对课本例子的求解-bankers algorithm, against textbook example of the Solution
- 2022-03-02 01:30:47下载
- 积分:1
-
一个完成的FIFO算法
一个完成的FIFO算法-completed a FIFO algorithm
- 2022-12-26 13:40:03下载
- 积分:1
-
高端手机操作界面
高端手机操作界面-high-end phones interface
- 2023-06-02 19:50:04下载
- 积分:1