-
Windows资源浏览器外壳扩展右键菜单功能的实例程序
Windows资源浏览器外壳扩展右键菜单功能的实例程序-Windows Explorer context menu shell extension examples of procedures
- 2023-08-09 16:40:05下载
- 积分:1
-
串行端口。枚举和FIFO的控制。
Serial ports. Enumeration and FIFO controls.
- 2022-08-15 06:36:50下载
- 积分:1
-
source code of Stanford iPhone course, demo of how to use multitouch
Stanford iPhone课程配套源码,介绍multitouch 的实现方法。-source code of Stanford iPhone course, demo of how to use multitouch
- 2022-04-08 04:20:10下载
- 积分:1
-
threads and synchronization of nachos Experimental
nachos下线程与同步的实验,在nachos目录下覆盖源文件后make就可以运行-threads and synchronization of nachos Experimental
- 2022-05-08 22:07:34下载
- 积分:1
-
T-kernel Tcp/ip Protocol Stack Sample
T-kernel Tcp/ip Protocol Stack Sample-T-kernel TCP/ip Protocol Stack Sample
- 2022-03-16 03:35:08下载
- 积分: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
-
Applied to arm, avr, h8 platform of non
应用于arm、avr、h8平台的非抢占式操作系统,简单好用,也可以很方便的移植到其他平台-Applied to arm, avr, h8 platform of non-preemptive operating system, easy-to-use, it can be easily ported to other platforms of
- 2022-03-01 10:46:08下载
- 积分:1
-
C/C++虚拟机的实现的window版本
C/C++虚拟机的实现的window版本-C/C virtual machine on the realization of the window version
- 2023-06-09 20:10:05下载
- 积分:1
-
十大题型算法全实现――(二)可变分区存储管理方案中的内存分配...
十大题型算法全实现――(二)可变分区存储管理方案中的内存分配 -10 types of agrithment implement memory allocate in the variable partion memory management.
- 2022-03-13 03:28:24下载
- 积分:1
-
the procedures on the topic of : process management
本次程序的题目为:进程管理――支持多个进程并发运行的简单的进程管理模拟系统,对本实验的分析要求是:⑴系统中的同步机构采用信号量上的P、V操作的机制;⑵控制机构包括阻塞和唤醒操作;⑶时间片中断处理程序处理模拟的时间片中断;⑷进程调度程序负责为各进程分配处理机;⑸根据用户的需求来创建n个进程(n为即满足用户需求,又不超出系统可容的最大进程数),各进程互斥地访问使用临界资源 S1、S2;⑹使用动态优先数(如:随阻塞次数的增加而减小优先数,以提高其优先权);⑺进程结束后应能够撤消;⑻进程间能实现“发送”和“接收”两个消息缓冲通信操作;⑼系统在运行过程中随机打印出各进程的状态变换过程、系统的调度过程及公共变量的变化情况,在一个进程运行完毕,进入完成状态后,可以将该进程撤消,也可以动态的创建另一个新的进程。-the procedures on the topic of : process management-- to support multiple concurrent processes running a simple process management simulation system for the analysis of the experimental requirements are : 1 system of institutions using synchronous signals on the amount of P, V operation of the mechanism; 2 control agencies, including obstruction and awaken operation ; 3-time interrupt handling procedures-time simulation of interruption; 4 process scheduler is responsible for the allocation process processors; together according to the user"s needs to create process n (n that meet user needs, without exceeding the system can accommodate
- 2022-03-13 01:19:06下载
- 积分:1