-
分享一个模拟生产者消费者的小程序
实验目的进程同步是操作系统多进程/多线程并发执行的关键之一,进程同步是并发进程为了完成共同任务采用某个条件来协调他们的活动,这是进程之间发生的一种直接制约关系。本次试验是利用信号量进行进程同步。实验软件环境VC++或者Linux操作系统实验内容• 生产者进程生产产品,消费者进程消费产品。 • 当生产者进程生产产品时,如果没有空缓冲区可用,那么生产者进程必须等待消费者进程释放出一个缓冲区。 当消费者进程消费产品时,如果缓冲区中没有产品,那么消费者进程将被阻塞,直到新的产品被生产出来。
- 2022-10-22 03:50:04下载
- 积分:1
-
Bootloader(Vivi)源代码分析
Bootloader(Vivi)源代码分析
----基于S3C2410处理器-Bootloader (Vivi) source code analysis-based S3C2410 Processor
- 2022-08-25 01:23:14下载
- 积分:1
-
Class ucos operating system code, and want to be useful to interested friends
类ucos操作系统代码,希望对感兴趣的朋友有用-Class ucos operating system code, and want to be useful to interested friends
- 2022-02-22 09:34:40下载
- 积分:1
-
在控制台下模拟的windows操作系统下的文件管理系统,包含文件管理的常用功能。...
在控制台下模拟的windows操作系统下的文件管理系统,包含文件管理的常用功能。-In the console under the windows operating system simulation under the document management system, including the commonly used document management functions.
- 2023-02-04 16:20:03下载
- 积分:1
-
关于unix操作系统的最经典的一部电子英文版的书,主要含有关于unix环境下的经典编程...
关于unix操作系统的最经典的一部电子英文版的书,主要含有关于unix环境下的经典编程-Unix operating system on the most classic of the English version of an electronic book, containing mainly on classic unix programming environment
- 2022-06-03 05:55:48下载
- 积分:1
-
BCB与Open CV
带打开cv的BCB
- 2022-09-16 22:30:08下载
- 积分:1
-
计算机技术在大约55年后取得了令人难以置信的进展…
Computer technology has made incredible progress in the roughly 55 years since
the first general-purpose electronic computer was created. Today, less than a
thousand dollars will purchase a personal computer that has more performance,
more main memory, and more disk storage than a computer bought in 1980 for
$1 million. This rapid rate of improvement has come both from advances in the
technology used to build computers and from innovation in computer design.
- 2022-04-29 06:46:06下载
- 积分: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
-
通用异步FIFO的verilog设计代码,从开源
通用异步FIFO设计的verilog代码,来自于opencore-Universal Asynchronous FIFO Verilog design code, from opencore
- 2022-05-25 15:08:10下载
- 积分:1
-
文件管理模拟系统设计报告
文件管理模拟系统设计报告-document management simulation system design report
- 2022-05-18 19:44:44下载
- 积分:1