登录
首页 » Visual C++ » EOSApp

EOSApp

于 2020-12-23 发布 文件大小:2KB
0 342
下载积分: 1 下载次数: 4

代码说明:

  1)设计一程序,由一个进程创建三个子进程,三个子进程一个是生产者进程,两个是消费者进程。 2)父子进程都使用父进程创建的共享存储区进行通信,由生产者进程将一个数组中的十个数值发送到由5个缓冲区组成的共享内存中。? 3)两个消费者进程轮流接收并输出这十个数值,同时将两个消费者进程读出的数值进行累加求各和。 4)考虑生产者进程生产的速度和消费者进程速度。(1) a program is designed to create three sub processes from one process, three sub processes is the producer process, and the two is the consumer process. 2) the father child process communicates with the shared storage area created by the parent process, and sends ten values in one array to the shared memory composed of 5 buffers by the producer process. L 3) the two consumer processes take turns to receive and output the ten values, and add values to each of the two consumer processes. 4) take into account the production speed of the producer process and the speed of the consumer process.)

文件列表:

EOSApp.c, 5433 , 2017-12-25

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论


0 个回复

  • LinuxGroupMan
    说明:  Unix 成组链接法 模拟UNIX系统的空闲块成组链接法,实现磁盘存储空间的管理(Unix Group Links UNIX System Simulation of spare pieces Group link, disk storage space to achieve the management)
    2020-12-12 19:59:15下载
    积分:1
  • operatingsystem
    操作系统页面置换 调度 寻道程序 简短使用(Page seek replacement operating system scheduling procedures)
    2009-05-17 08:09:54下载
    积分:1
  • diantidiaodu
    驱动调度+操作系统+模拟电梯调动的算法程序,使用C++编写。(Driven scheduling algorithm procedures, the+ operating system+ simulated lift mobilize written using the C++.)
    2012-11-14 20:17:03下载
    积分:1
  • dinning
    哲学家进餐的问题,用程序模拟实现,解释死锁的产生、解除以及预防(dining philosophers problem, simulation procedures, explained Deadlock in lifting and prevention)
    2006-12-08 11:52:24下载
    积分:1
  • HB_COM
    可以控制标签的各种状态,包括大小,字体等等,只要你能想到(Can control a variety of status labels, including size, fonts, etc., as long as you can think of)
    2008-04-15 19:22:25下载
    积分:1
  • avoid-deadlock
    操作系统实验-死锁避免算法,word文档,详细,全,可执行,自己写的,希望快点能在贵网站下载。。。(Operating System Experiment- Deadlock avoidance algorithm, word documents, detailed, full, enforceable, wrote it myself, hope quickly in your website. . .)
    2013-10-28 19:05:59下载
    积分:1
  • file-management-experiment
    操作系统文件管理实验:利用交互式命令实现树型目录结构和文件管理,同时利用位示图表示外存的分配情况,新建文件时分配必要的空间,模拟文件分配表记录文件在外存上的存储方式。了解系统对文件的操作。 在文件中保存目录内容,创建文件或子目录可以用命令行命令:MD、CD、RD、MK(创建文件)、DEL(删除文件)和DIR(Operating system file management experiment: the use of interactive command tree directory structure and file management, while taking advantage of the bit map indicates the distribution of the external memory, and allocate the necessary space when a new file is created, the simulation file allocation table log file is stored in the external memory way. Understanding of the system operation on the file. Save the contents of a directory in the file, create a file or subdirectory can use the command-line command: MD, CD, RD, MK (create a file), DEL (delete files) and DIR)
    2020-12-12 20:49:17下载
    积分:1
  • process-and-thread-Technology
    进程和线程技术 Linux和windows进程创建 进程和线程通信 文档+实例分析(process and thread Technology Text and examples)
    2012-01-05 10:51:28下载
    积分:1
  • clock页面置换算法
    clock页面置换算法 用CLOCK置换算法仿真请求分页系统 1、设计目的:用高级语言编写和调试一个内存分配程序,加深对内存分配算法的理解。 2、设计要求: 1) 实现请求分页存储管理方式的页面置换算法:CLOCK算法 2) 内存物理块数固定为15个,对多个作业采用可变分配全局置换的策略分配物理块 3) 作业数量与作业大小(10-20页)可在界面进行设置 4) 所有作业按RR算法进行调度,时间片长度为1秒 5) 可为每个作业随机产生引用的页面串,也可以人工输入引用的页面串,页面串长度50---100,要求必须包括作业所有的页面,可作为样例数据保存 6) 可读取样例数据(要求存放在外部文件中)进行作业数量、作业大小、页面串长度的初始化 7) 要求采用可视化界面,模拟内存分配和使用情况图,可在运行过程中随时暂停,查看当前内存物理块使用情况。 8) 每次全部作业运行结束后,要求打印出访问命中率 (clock page replacement algorithm)
    2013-05-12 10:42:56下载
    积分:1
  • Storage_Simulator0001
    在采用多道程序设计的系统中,往往有若干个进程同时处于就绪状态。当就绪进程个数大于处理机数时,就必须依照某种策略来决定哪些进程优先占用处理机。本实验模拟在单处理机情况下的处理机调度,帮助学生加深了解处理机调度的工作。 二、实验类型 设计型。 三、预习内容 预习课本处理机调度有关内容,包括进程占用处理机的策略方法。 四、实验要求与提示 设计进程调度算法,进程数不定;包含几种调度算法,并加以实现;输出进程的调度过程——进程的状态、链表等。要求使用优先权法和轮转法模拟进程调度过程。 【提示】:简化假设 1) 进程为计算型的(无I/O) 2) 进程状态:ready、running、finish 3) 进程需要的CPU时间以时间片为单位确定 【提示】:算法描述 1) 优先权法——动态优先权,当前运行进程用完时间片后,其优先权减去一个常数。 2) 轮转法 (err)
    2008-06-12 19:04:46下载
    积分:1
  • 696518资源总数
  • 104573会员总数
  • 29今日下载