搜索资源列表
操作系统试验报告
- 试验目的:通过研究Linux的线程机制和信号量实现生产者消费者问题的并发控制 说明:有界缓冲区内设有20个存储单元,放入/取出的数据项设定为1~20这20个整型数。 要求: (1)每个生产者和消费者对有界缓冲区进行操作后,即时显示有界缓冲区的全部内容.当前指针位置和生产者/消费者线程的标识符 (2)生产者和消费者各有两个以上 (3)多个生产者或多个消费者之间须共享对缓冲区进行操作的函数代码。-Test Objective : To study the Linux threading mechan
process
- 操作系统原理实验,主要用来统计线程时间数,南京大学内部资料-Operating principle experiment, the main thread is used to statistical time series, Nanjing internal data
producer-and-consumer
- 《操作系统概念》第七版 中的实验项目:生产者消费者问题。本程序中,main()函数需要三个参数:主线程休眠时间;生产者线程数;消费者线程数。各线程的休眠等待时间是随机的。-Experimental project in the seventh edition of the operating system concept: producers and consumers. The program, the main () function takes three parameters: the
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