搜索资源列表
neicun
- 用c++编的内存的分配与回收,用数组进行编写,采用结构体
1
- 用多进程同步方法解决生产者-消费者问题 设计目的:通过研究Linux 的进程机制和信号量实现生产者消费者问题的并发控制. 说明:有界缓冲区内设有20个存储单元,放入/取出的数据项设定为1-20这20个整型数. 设计要求:(1)每个生产者和消费者对有界缓冲区进行操作后,即时显示有界缓冲区的全部内容,当前指针位置和生产者/消费者县城的标识符.(2)生产者和消费者各有两个以上.(3)多个生产者或多个消费者之间须有共享对缓冲区进行操作的函数代码. 提示:(1) 有界缓冲区可用数组实现.
页面置换算法的模拟实现和计算命中率
- 基本算法思想 OPT:该算法的基本思想是用二维数组page2[40][2] 的第一列存储装入内存的页面,而第二列用作标记位计数器。每当发生缺页时,就从内存中调出一页,首先将内存中的页面一一与要调入内存中的页面之后的页面比较,如果两个页面不相等,则内存中相应的页面的标记位计数器加一,直至到有相等的页面,则该页面的比较停止,再重复以上操作,直至内存中的页面全部比较完。然后找出内存中页面的标记位最大的页面,而该页就是要置换出来的页。 FIFO: 该算法的基本思想是用队列queue存储内存中的页面,队列
banker_by_array
- 本程序为自己在学习操作系统时独立根据书上所述的银行家算法制作而成,包括一个数组输入函数(Sr()),数组输出函数(Pr())和一个判断函数(test()),并通过指针传递参数,可以自定义进程数目和资源种类数目(源程序限10个以内,可自行更改数组)。 注:本程序是在linux环境下通过gcc编译器编译成功的。若移植到windows环境下可能在汉字显示部分出现乱码。-This procedure for their own independence in learning, when the o
systemtest
- 本程序是操作系统课程实验的死锁的检测与解除。解除方式采用撤销进程的方法。全部用数组实现。在ubuntu(linux)下编译通过。为本人原创。每次撤销个代价最小的死锁进程,释放其所拥有的资源。 所有数据都是可以自行设置的,包括进程个数,资源种类数,各进程的代价等。-This procedure is the operating system course experiment Deadlock Detection and disarmament. The lifting of the way
cunchuguanli
- 模拟系统中,主存部分分为两部分,一部分是系统区,这里只存放进程控制块和内存分配表,一部分是用户区,这里主要是对用户区的管理。 系统区包括PCB区域、内存空间分配表; 用户区用数组模拟,大小为512字节,存储管理采用动态分区存储管理方式。-Simulation system, part of main memory is divided into two parts, the system area, only the storage process control block and
disk
- 操作系统磁盘空间分配与回收,用户可以定义柱面数,扇区数,磁道数,然后用一个二维数组存放相对应用户分配的相对物理块号,即数组weishi[][]。程序中定义内部类记录进程,当输入相应的用进程名时,给相应分配为物理块,记录盘块数据。当回收用户盘块时,只需输入进程名,即可回收其占用的盘块并置位示图相应号为0。-Operating system disk space allocation and recovery, users can define the number of cylinders, se
shijian
- 用c语言描写处理机进程调度,数组实现优先调度和时间片调度-Processor with the c language to describe the process of scheduling, priority scheduling and time to achieve an array of film scheduling
diskseekingalgorithms
- 操作系统课程设计,磁盘寻道算法。做了扫描和循环扫描算法。分别用数组和链表方式进行了测试。并比较了时间效率。-Operating systems curriculum design, disk seeking algorithms. Done a scan and cyclic scan algorithm. Way with arrays and linked lists were tested. And compared the time efficiency.
Bank
- 用数组模拟银行家算法,解决进程之间的死锁避免问题-Simulation with an array of bankers algorithm avoid deadlock between the process of resolving the problem
as
- 编写C语言程序,模拟UNIX磁盘空间管理中使用的分组链接法。 1.定义一个记录磁盘块号的堆栈S—free[10],以及记录栈中现有磁盘块数的变量S—nfree。 2.定义一个由40个元素构成的结构数组block[40]用作磁盘块存放。 struct size { int blocl[10] } struct blocd { struct size a[10] //用于在空闲磁盘块号链中存放磁盘块号 }block[40] 3. 假设系统中文件的最大
scheduling
- 编写一模拟程序,实现几种常见的进程调度算法,通过对几组进程分别使用不同的调度算法,计算进程的平均周转时间和平均带权周转时间,比较各种算法的优劣。 进程调度实现先来先服务算法、抢占式优先数调度算法、时间片轮转调度算法和多级队列反馈调度算法。-Write a simulation program, to achieve some common process scheduling algorithm, the process by several groups of different sch
os
- 操作系统动态分区模拟,简单的课程设计,缺少错误分析。数组实现。-Dynamic simulation of the operating system, a simple course design, lack of error analysis. Array implementation.
OS-filesystem
- 操作系统实验-文件系统源代码,实现多级二级目录,数据结构,数组和单向链表-Operating system experiment- the file system source code, to achieve multi-level two directories, data structures, arrays, and singly linked list
management-of-process
- 综合应用下列知识点设计并实现操作系统的进程调度:邻接表,布尔数组,非阻塞输入,图形用户界面GUI,进程控制块,进程状态转换,多级反馈队列进程调度算法。-Comprehensive application of the following knowledge points and the process scheduler of the operating system : the adjacency table , Boolean array , non-blocking input , gra
Selection-Sort
- 用冒泡法对整型和双精度型数组进行排序的c++程序-Bubble Act of integer and double-precision array sort c++ program
lift_control_by_Vina
- 某一层楼20层,有五部互联的电梯。基于线程思想,编写了此电梯调度程序。 程序包含两个类: lift_control类 实现对电梯的生成和调度 dest类 当做静态类调用其中函数,实现对int数组的管理,包括insert(),size(),pop(),delete()等。-Floor of a 20-story, there are five interconnected elevator. Based on the thread of ideas, this elevator
array-demo
- 易语言程序 易语言远吗模块 子程序返回数组演示-Easy language program easy language far module subroutine return array demo
type-Implementation
- 易语言程序 易语言远吗模块 子程序返回数组演示(自定义类型实现)-Easy language program easy language far module subroutine return array demo (custom type Implementation)
sem.c
- 这是关于操作系统中生产者消费者问题的一段代码,其中生产者和消费者问题是用信号量实现的,临界资源是用数组实现的。-This is a piece of code about the producer-consumer problem in the operating system, where producer and consumer problems are implemented with semaphores, and the critical resource is implemente