-
银行家算法C++描述,操作系统中的经典问题,算法较为简易
银行家算法C++描述,操作系统中的经典问题,算法较为简易-bankers algorithm C descriptions of the operating system classic problem, the algorithm is a summary
- 2022-04-08 22:56:57下载
- 积分:1
-
Stanford iPhone课程配套源码,介绍people picker的用法。
Stanford iPhone课程配套源码,介绍people picker的用法。-source code of Stanford iPhone course, demo of how to use People picker
- 2022-03-21 05:03:07下载
- 积分:1
-
windows操作系统中的prochandle项目
windows操作系统中的prochandle项目-windows operating system as a project prochandle
- 2023-07-12 04: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
-
我是新人,请斑竹多多指教.
我是新人,请斑竹多多指教.-newcomers, fed exhibitions.
- 2022-03-22 08:45:00下载
- 积分:1
-
DOS systems handle more tasks lined up C language source
DOS系统下多任务列队处理C语言源程序-DOS systems handle more tasks lined up C language source
- 2022-06-17 01:40:53下载
- 积分:1
-
自己动手写操作系统,书的配套光盘。很好的入门级教材,是《操作系统》极好的课设参考资料。...
自己动手写操作系统,书的配套光盘。很好的入门级教材,是《操作系统》极好的课设参考资料。-to write their own operating system, the matching CD. A good entry-level teaching materials, "operating system" excellent lesson based reference materials.
- 2022-02-20 17:40:44下载
- 积分:1
-
a small operation registry procedures, the pair creation, modification are prett...
一个操作注册表的小程序,键值的创建,修改等都很不错哦-a small operation registry procedures, the pair creation, modification are pretty good oh
- 2022-01-25 17:19:16下载
- 积分:1
-
国外的
国外的-C++ 200多个源码-foreign-C more than 200 FOSS
- 2022-03-22 14:31:17下载
- 积分:1
-
语音 超声波测距LCD12864显示
超声波测距仪,用51来控制,本设计主要是以74LS04和CX20106A为测距模块,DS18B20用于温度补偿,12864液晶显示,HC-SR04为超声波显示板,语音模块由音频功率放大器LM386、语音芯片WT588D、低压差电压调节LM1117组成。
- 2022-04-30 15:02:30下载
- 积分:1