-
这个程序是模拟采用二级目录结构的磁盘文件系统中的文件操作,它可以实现对文件的一些基本管理,如:读、写、删除文件等。通过这个程序可掌握文件子系统的原理,加深对二级...
这个程序是模拟采用二级目录结构的磁盘文件系统中的文件操作,它可以实现对文件的一些基本管理,如:读、写、删除文件等。通过这个程序可掌握文件子系统的原理,加深对二级目录结构的文件系统中用户管理、文件管理、目录管理的理解,并用程序实现对文件子系统的模拟。-the procedure is simulated using two disk directory structure of the file system file manipulation, it can be achieved on some basic document management, such as : read, write, delete files. Through this procedure can grasp the principle document subsystems to enhance the structure of the two file system user management, document management, directory management, understanding, and the procedures to achieve the right documents subsystem simulation.
- 2022-05-30 23:08:31下载
- 积分: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
-
这是一个电梯模拟器,使用操作系统的概念叫互斥实现一..
it s a lift simulator, use operating system concept call mutex to implenment a lift. I do it prefectly.-it sa lift simulator, use operating system concept call mutex to implenment a lift. I do it prefectly.
- 2022-01-24 15:55:57下载
- 积分:1
-
试验目的:通过研究Linux的线程机制和信号量实现生产者消费者问题的并发控制 说明:有界缓冲区内设有20个存储单元,放入/取出的数据项设定为1~20这20个整型...
试验目的:通过研究Linux的线程机制和信号量实现生产者消费者问题的并发控制 说明:有界缓冲区内设有20个存储单元,放入/取出的数据项设定为1~20这20个整型数。 要求: (1)每个生产者和消费者对有界缓冲区进行操作后,即时显示有界缓冲区的全部内容.当前指针位置和生产者/消费者线程的标识符 (2)生产者和消费者各有两个以上 (3)多个生产者或多个消费者之间须共享对缓冲区进行操作的函数代码。-Test Objective : To study the Linux threading mechanism and signal to producers and consumers to achieve the concurrency control : a boundary buffer There are 20 storage units, Add/remove data items for a set of 20 ~ 20-integer. Requirements : (1) Each producer and consumer sector of the buffer zone is operated, immediately after the sector showed a buffer in its entirety. The current position and producer/consumer threads identifier (2) producers and consumers have two or more (3) A number of producers or many consumers to be shared between the right to operate the buffer function code.
- 2023-06-17 09:40:03下载
- 积分:1
-
麻省理工学院Jos实验室2完整的解决方案
Complete Solution for MIT JOS labs 2-4
- 2022-02-03 08:55:45下载
- 积分:1
-
《操作系统》实验指南
《操作系统》实验指南-"operating systems" experiment guide
- 2022-07-20 03:25:02下载
- 积分:1
-
ckos 移植到ARMTDMI7核的ADuC7026上
ckos 移植到ARMTDMI7核的ADuC7026上-ckos transplanted to the ADuC7026 on nuclear ARMTDMI7
- 2022-01-28 01:15:59下载
- 积分: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
-
自己动手写操作系统
自己动手写操作系统-to write its own operating system
- 2022-01-24 18:16:16下载
- 积分:1
-
Pan Miriam I602 hardware resources of the XPE files, can be generated directly i...
潘千嬅I602硬件资源的XPE文件,可以直接生成成XPE
- 2022-03-22 13:27:17下载
- 积分:1