-
memory management system simulation
模拟内存管理系统-memory management system simulation
- 2022-03-01 04:00:19下载
- 积分: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
-
银行家算法,还不错。有好的请与我联系!
银行家算法,还不错。有好的请与我联系!-bankers algorithm, is not bad. Good please contact me!
- 2022-02-16 03:06:59下载
- 积分:1
-
TFTP协议的源代码,包括协议本身和命令行解释两部分内容
TFTP协议的源代码,包括协议本身和命令行解释两部分内容-TFTP protocol source code, including the agreement itself and the command line to explain the contents of two parts
- 2022-02-21 06:58:22下载
- 积分:1
-
vc==方法口isjomauamg sjemedpi什么都需要自己去租恶习的。
vc==方法口isjomauamg sjemedpi什么都需要自己去租恶习的。-vxxcv this is my own
- 2022-03-26 00:15:53下载
- 积分:1
-
LINUX 内核,对操作系统内核的开发有很好的借鉴及学习意义,只有在linux下make 就能用了...
LINUX 内核,对操作系统内核的开发有很好的借鉴及学习意义,只有在linux下make 就能用了-LINUX kernel of the operating system kernel developers have a very good reference and learning the meaning, only in linux can be used under make
- 2022-03-23 16:29:03下载
- 积分:1
-
模拟协处理器功能的 C 语言源码
模拟协处理器功能的 C 语言源码 -coprocessor functional simulation of C language source code
- 2023-01-23 18:50:03下载
- 积分:1
-
银行家算法,一斑斑吧。够用了
银行家算法,一斑斑吧。够用了-bankers algorithm, one spotted it. Adequacy of
- 2022-06-22 05:00:30下载
- 积分:1
-
RAM中文资料,面向A R M 微处理器构架的嵌
入式操作系统的使用量将在今后五
年持续增长,在各种嵌入式操作系
统中,Linux是获得支持最多的第...
RAM中文资料,面向A R M 微处理器构架的嵌
入式操作系统的使用量将在今后五
年持续增长,在各种嵌入式操作系
统中,Linux是获得支持最多的第三
大力量。-RAM Chinese data, M A R-oriented architecture microprocessor embedded operating system used in the next five years will be continued growth Embedded in the various operating systems, Linux is supported by most third-largest force.
- 2022-07-04 23:43:16下载
- 积分:1
-
S3C2410和S3C2440的实验源的基本组成:UART,I2C,MMU,…
S3C2410/S3C2440的基本部件实验源码:UART、I2C、MMU、NAND FLASH、触摸屏等10多个-S3C2410/S3C2440 the basic components of the experimental source: UART, I2C, MMU, NAND FLASH, such as touch screen more than 10
- 2022-08-24 04:29:50下载
- 积分:1