-
LRU(最近最少使用算法) and MRU(最近最常使用算法)所谓的LRU(Least recently used)算法的基本概念是:当内存的剩余的可用空间不够...
LRU(最近最少使用算法) and MRU(最近最常使用算法)所谓的LRU(Least recently used)算法的基本概念是:当内存的剩余的可用空间不够时,缓冲区尽可能的先保留使用者最常使用的数据,换句话说就是优先清除”较不常使用的数据”,并释放其空间-LRU (least recently used algorithm) and MRU (most recently used) algorithm called LRU ( Least recently used) algorithm is the basic concept : When the memory of the remaining available space is insufficient, the first buffer as possible to retain the most common users of the data used, In other words priority is to eliminate the "more rarely use the data," and the release of its space
- 2022-06-29 21:11:52下载
- 积分:1
-
模拟采用二级目录结构的磁盘文件系统中文件操作
模拟采用二级目录结构的磁盘文件系统中文件操作-Simulation of two-level directory structure of the disk file system file operations
- 2022-10-14 23:05:03下载
- 积分:1
-
基于Linux sockte的聊天程序,有客户端服务器端,在FC6下已经调试通过...
基于Linux sockte的聊天程序,有客户端服务器端,在FC6下已经调试通过-Based on the Linux sockte chat program, the client has a server-side, in FC6 already debugging through
- 2022-05-25 17:24:48下载
- 积分:1
-
操作系统学习内存管理模拟实验源代玛
操作系统学习内存管理模拟实验源代玛-learning operating system memory management simulation source substituting Mary-------------------
- 2022-03-03 14:30:36下载
- 积分: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
-
A user
A user-space device driver can do many of the things that kernel drivers can t, such as perform a long-running computation, block while waiting for an event, or read files from the file system. Unlike kernel drivers, a user-space device driver can use other device drivers--that is, access the network, talk to a serial port, get interactive input from the user, pop up GUI windows, or read from disks. User-space drivers implemented using FUSD can be much easier to debug it is impossible for them to crash the machine, are easily traceable using tools such as gdb, and can be killed and restarted without rebooting even if they become corrupted. FUSD drivers don t have to be in C--Perl, Python, or any other language that knows how to read from and write to a file descriptor can work with FUSD. User-space drivers can be swapped out, whereas kernel drivers lock physical memory.-A user-space device driver can do many of the things that kernel drivers can t, such as perform a long-running comput
- 2022-11-28 07:20:03下载
- 积分:1
-
lunix下用c编写malloc函数
lunix下用c编写malloc函数-lunix c prepared using malloc function
- 2022-04-30 13:07:48下载
- 积分:1
-
VB与sql数据库的完美结合实例1
VB与sql数据库的完美结合实例1-sql database VB and the perfect example of a combination
- 2023-08-19 07:30:03下载
- 积分:1
-
操作系统引导探究
操作系统引导探究-OS guide Inquiry
- 2022-08-08 21:43:48下载
- 积分:1
-
Nucleus PLUS参考手册
Nucleus PLUS参考手册 -Nucleus PLUS Reference Manual
- 2022-08-15 15:46:31下载
- 积分:1