-
页面置换算法模拟的简单实现,及相关过程.
页面置换算法模拟的简单实现,及相关过程.-page replacement algorithm simulation of a simple realization, and the related process.
- 2023-01-18 12:05: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
-
设备管理是对设备的分布仿真系统…
设备管理是模拟系统的设备分配问题,欢迎下载-Equipment management is a simulation system for the distribution of the equipment are welcome to download
- 2022-03-23 00:13:03下载
- 积分:1
-
MINIX2.0操作系统源码,是Linux的前身,世界上最小的32位操作系统
MINIX2.0操作系统源码,是Linux的前身,世界上最小的32位操作系统-Minix operation system ver 2.0,the pater of Linux,the smallest 32bits operation system in the world.
- 2023-08-05 11:15:06下载
- 积分:1
-
教务信息管理系统源代码,希望各位学习c语言的能够认真研究
教务信息管理系统源代码,希望各位学习c语言的能够认真研究-academic information management system source code, hoping to learn the language c to seriously study
- 2022-11-29 19:45:04下载
- 积分:1
-
一套菜单控件
用起来比较方便 皮肤可以由自己定义
一套菜单控件
用起来比较方便 皮肤可以由自己定义 -A set of menu controls more convenient to use the skin can be defined by their own
- 2022-06-27 19:25:40下载
- 积分:1
-
、课设内容及步骤
1. 消化课设算法思想及样本程序
给出对应模块(函数)的流程图
2. 编制 建立、删除、打开、关闭、读、写 函数
3. 准备调...
、课设内容及步骤
1. 消化课设算法思想及样本程序
给出对应模块(函数)的流程图
2. 编制 建立、删除、打开、关闭、读、写 函数
3. 准备调试数据(至少两个用户,若干文件),能实施多个命令操作
4. 上机编辑、编译源程序,并进行调试
5. 利用准备好的调试数据,运行测试程序,
观察运行结果,并作记录和分析
-, Class-based content and Step 1. Digest algorithm based lesson ideas and sample program are given the corresponding module (function) of the flow chart 2. Prepared to establish, delete, open, closed, read, write, function 3. Ready debugging data (at least two users, a number of documents), to implement a number of commands to operate 4. on the machine to edit, compile source code, and debugging 5. preparation good use of debugging data, run test procedures, observing the results, and for recording and analysis
- 2022-02-09 14:21:26下载
- 积分:1
-
你知道大多数数字信号处理器157(回答)。
做DSP最应该懂得157个问题(回答).-do know that most DSP 157 (answer).
- 2023-06-18 10:45:03下载
- 积分:1
-
实现第一
实现先来先服务的算法,有利于不同级别队列的优先运行-To achieve first-come first-serve algorithm, is conducive to different levels of priority queue operation
- 2022-01-26 08:24:39下载
- 积分:1
-
QNX 操作系统下 Freescale MPC8641DHPCN 开发板的板级支持包
QNX 操作系统下 Freescale MPC8641DHPCN 开发板的板级支持包-QNX operating system Freescale MPC8641DHPCN development board of the Board Support Package
- 2022-01-22 00:03:44下载
- 积分:1