-
Linux中的不间断数据保护模块实现代码
Linux中的不间断数据保护模块实现代码-Linux uninterrupted data protection module code
- 2022-03-20 12:20:17下载
- 积分: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
-
分析了IDE接口硬盘控制寄存器模型;论述了IDE接口硬盘的读写几项技术;给出了设计硬盘克
隆软件的思想和方法,方法针对硬盘物理扇区进行读写,与硬盘上安装的具...
分析了IDE接口硬盘控制寄存器模型;论述了IDE接口硬盘的读写几项技术;给出了设计硬盘克
隆软件的思想和方法,方法针对硬盘物理扇区进行读写,与硬盘上安装的具体操作系统的类型无关,并与硬
盘驱动器的物理结构无关。-Analysis of the IDE hard disk interface control register model discusses the IDE interface hard disk read and write a number of technologies gives the design the hard disk cloning software, the ideas and methods, methods for the physical sector of the hard disk read and write, and the hard disk is installed on specific operations the type of system has nothing to do with the physical structure of the hard drive has nothing to do.
- 2022-05-12 23:10:21下载
- 积分:1
-
Bochs,小教学操作系统
bochs,一个小的教学用操作系统-Bochs, a small teaching operating system
- 2022-02-02 12:19:03下载
- 积分:1
-
Orange' s: an operating system implementation (source code attached to the bo...
Orange s:一个操作系统的实现(书附源码)readme.rar-Orange" s: an operating system implementation (source code attached to the book) readme.rar
- 2022-08-17 14:20:28下载
- 积分:1
-
本代码实现了操作系统中的司机和售票员同步问题,应用了VC中的信号灯,是我学完P、V操作后写的,希望于大家分享。...
本代码实现了操作系统中的司机和售票员同步问题,应用了VC中的信号灯,是我学完P、V操作后写的,希望于大家分享。-the code of the operating system and the driver and conductor of the bus synchronization, application of the VC"s appearance, I studied End P, V written after the operation, which we hope to share with you all.
- 2022-05-05 23:41:27下载
- 积分:1
-
应用rapidemo RAPI函数copydevicetopc
rapidemo rapi函数的应用CopyDeviceToPC-Application rapidemo rapi function CopyDeviceToPC
- 2022-01-25 20:11:11下载
- 积分:1
-
uCOS
uCOS-II实例内核技术与应用实例。应用程序开发与调试。实时内核与应用程序框架结构分析-uCOS-II
- 2022-11-20 17:15:03下载
- 积分:1
-
基于组件方式开发操作系统的OSKIT源代码
基于组件方式开发操作系统的OSKIT源代码-component-based approach to the development of the operating system source code OSKIT
- 2022-06-13 00:10:53下载
- 积分:1
-
高校计算机学院操作系统课程关于进程通信的程序范例
高校计算机学院操作系统课程关于进程通信的程序范例-University College of the operating system of computer programs on the example of the process of communication procedures
- 2022-03-13 08:14:25下载
- 积分:1