搜索资源列表
zy1
- 一.算法介绍: **数据结构: 1.可利用资源向量Available 2.最大需求矩阵Max 3.分配矩阵Allocation 4.需求矩阵Need **功能介绍: 模拟实现Dijkstra的银行家算法以避免死锁的出现.分两部分组成: 第一部分:银行家算法(扫描) 1.如果Request<=Need,则转向2 否则,出错 2.如果Request<=Available,则转向3,否则等待 3.系统试探分配请求的资源给进程 4.系统执行安
生产者与消费者
- 程序用C++模拟了操作系统中的三种最典型的简单的静态进程调度算法;先由用户动态输入生成模拟进程,使用了26种可供用户选择的典型语句(包括循环、选择结构),可处理整型、布尔型与字符型三种数据与表达式计算;程序编制时主要采用的编程技术是:用语句链表记录进程语句,并用PCB链表,就绪队列链表,阻塞队列链表,执行队列链表,结束队列链表等数据表示进程处理过程中的相互关系,由于静态数据结构不适合处理数据量大小不定的数据,而动态队列结构适合于处理数据量大小可变数据的处理,因此在程序中采用动态链表对这些数据进行
实验三 最高优先级调度代码
- 模拟创建进程(建立一个记录型数据结构PCB):给出进程标识、状态、到达时间、运行时间等用先来先服务调度算法进行模拟实现-simulation creation process (to establish a record type data structure PCB) : the process of identification is given, state, arrival time, the time spent running a first-come first-service s
29_161625_pc
- 生产者与消费者问题算法实现,功能要求:根据进程同步机制,编写一个解决上述问题的可视化程序,可显示缓冲池状态、放数据、取数据等过程。 具体参数:有4个生产者进程,分别为P1、P2、P3和P4; 有4个消费者进程,分别是C1、C2、C3和C4; 缓冲区单元个数N=15; 不同的生产进程可生产不同的产品,自己可任意定义,在本程序中是直接将相应生产者代号放入缓冲区,消费时将某消费者消费某生产者的信息显示出来 -Producers and consumers, the issue
DataStructuresandAlgorithms
- 主要描述了多任务下数据结构与算法的设计和运用-Mainly describes the mission of many data structures and algorithm design and the use of
Pagereplacement
- 页面置换--问题描述及设计思想:在进程运行过程中,若其所要访问的页面不在内存需把它们调入内存,但内存已无空闲空间时,为了保证该进程能正常运行,系统必须从内存中调出一页程序或数据,送磁盘的对换区中。但应将哪个页面调出,所以需要根据一定的算法来确定。-Page replacement- problem descr iption and design: the process is running, if they want to access the memory page is not requi
Mutex_Critical
- 这个例子利用多线程使用不同的排序算法对数据进行排序,每一个线程使用不同的算法。主线程里使用快速排序QuickSort,其他四个算法分别建立四个子线程,在子线程中进行排序。因为每一个线程都要调用函数PrintResult把结果输出到显示器上,所以不同的线程就会争夺着向显示器输出,这样,不同线程的输出就会混合在一起,所以呢必须让线程一个接着一个输出。也就是必须对PrintResult进行互斥控 制。要进行互斥控制,则必须用到Event、Mutex、CrititicalSection、Semaph
1
- 通过编写进程管理的算法,要求学生掌握整个进程管理的各个环节,进程的数据结构描述,进程的各种状态之间的转换,以及进程的调度算法。以加深对进程的概念及进程调度算法的理解,并且提高链表的应用能力,达到提高编程能力的目的。-Process management through the preparation of the algorithm, requires students to master the management of all aspects of the process, the pro
yin-hang-jia-suan-fa
- Dijkstra提出的银行家算法,是最具代表性的避免进程死锁的算法,本程序用相应的数据结构和算法实现银行家算法-Dijkstra' s bankers algorithm, is the most representative of the process to avoid deadlock algorithm, the program with the appropriate data structures and algorithms Algorithm bankers
BANK
- 银行家算法是一种最有代表性的避免死锁的算法。在避免死锁方法中允许进程动态地申请资源,但系 银行家算法 银行家算法 统在进行资源分配之前,应先计算此次分配资源的安全性,若分配不会导致系统进入不安全状态,则分配,否则等待。为实现银行家算法,系统必须设置若干数据结构。-Banker algorithm
Medical3
- 1.多线程编程的实现,介绍了每个线程获取数据的方法,实现了不同数据的不同时获取 2.神经网络算法的实现,简化了程序实现的过程-To achieve more than 1 thread programming, introduces each thread data acquisition methods, and achieve different data acquisition The realization of the 2 neural network algorithm, s
AMC
- 本资源包括基于模拟退火算法解决TSP问题的相关代码以及TSP的城市数据-This resource includes based on simulated annealing algorithm to solve TSP problem related code and city data of TSP
cvh
- 介绍了临河根石探么系统的软件组成,关于实时显示采集数据的跟踪算法,很实用!-Introduces the linhe root stone agent system software, the tracking algorithm of real-time display data, very useful!!
feklwu790
- 数据结构原代码,从事算法设计与分析技术,不错的源码-Data structure of the original code, is engaged in the algorithm design and analysis technology, good source
immstability-preprocessor
- 简单的算法编程,是我们平时的数据结构中的小程序,不错的选择-Simple arithmetic programming, it is our usual small program of data structure, a good choice
jyga
- 这个程序时avl树的所有算法的实现,包括插入删除新建排序,是数据结构学习者的极佳材料-Avl tree all the algorithm when the program implementation, including delete insert new sorting, excellent material learners is a data structure
transmissbonbaaed
- 压缩算法之一 ZIP压缩格式是在基于互联网进行数据传输过程中-Compression algorithm is one of the ZIP format is in the process of data transmission based on the Internet
zlassical_language
- 本程序是对经典的旅行商问题的一种解法,是学习数据结构算法的极佳材料,c语言编写,-This procedure is a solution to the classical traveling salesman problem, excellent material is data structure learning algorithm, c language,
TXRZANT9
- apriori算法vb实现,应用于数据挖掘应用,不错的源码(Vb realize apriori algorithm, is applied to data mining application, good source)
exporf
- 介绍了临河根石探么系统的软件组成,关于实时显示采集数据的跟踪算法,很实用!(Introduces the linhe root stone agent system software, the tracking algorithm of real-time display data, very useful!!)