-
设备管理主要包括设备的分配和回收、同时实现设备独立性。假定模拟系统中有A(3台)、B(2台)、C三种设备,采用安全分配方式。...
设备管理主要包括设备的分配和回收、同时实现设备独立性。假定模拟系统中有A(3台)、B(2台)、C三种设备,采用安全分配方式。-Device Manager includes equipment distribution and recovery, while achieving device independence. Simulation system assumes that there are A (3 units), B (2 units), C three kinds of equipment, the introduction of safety distribution.
- 2022-09-18 15:10:03下载
- 积分: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
-
操作系统设计与实现源码
操作系统设计与实现源码-Design and Implementation of the operating system source code
- 2022-04-01 01:46:24下载
- 积分:1
-
Secret of windows programming about 95 VxD programming
Secret of windows 95 programming about VxD programming-Secret of windows programming about 95 VxD programming
- 2022-02-25 07:23:31下载
- 积分:1
-
国外经典教材《操作系统分析与设计》中Minix操作系统的全部源代码。...
国外经典教材《操作系统分析与设计》中Minix操作系统的全部源代码。-Operating Systems Design and Implementation, 3rd Edition
by Andrew S. Tanenbaum and Albert S. Woodhull
- 2022-01-21 00:47:13下载
- 积分:1
-
CPU调度算法的仿真项目实现FCFS,SJF,RR算法…
CPU scheduling algorithm simulation project implements FCFS , SJF , RR algorithms
- 2022-01-26 07:49:23下载
- 积分:1
-
C prepared by the bank ATM system. Function well, not the incidental detail writ...
采用C++编写的银行ATM系统。功能不错,不详细介绍了
附带我们自己写的课程设计报告-C prepared by the bank ATM system. Function well, not the incidental detail write our own curriculum design report
- 2022-04-20 16:37:34下载
- 积分:1
-
讀取文件資料,實現sjf算法。
资源描述
一個簡單的sjf 算法的實現,這是一個sjf sjf sjf sjf sjf sjf sjf sjf sjf sjf sjf sjf sjf sjf sjf sjf sjf sjf sjf sjf s
- 2022-11-10 08:50:03下载
- 积分:1
-
操作系统的设计与实现
操作系统的设计与实现-Operating System Design and Implementation
- 2022-04-07 06:06:37下载
- 积分:1
-
3.30 MSDOS的源代码
msdos 3.30 source code
- 2022-05-06 23:51:23下载
- 积分:1