登录
首页 » 文件处理 » 模拟进程利用双向邮箱通信 随机生成一个邮箱,两个进程利用该邮箱相互通信,信息的大小与邮箱的大小相同。哪一个进程为发送进程,哪一个进程为接收进程是随机的,由随机函...

模拟进程利用双向邮箱通信 随机生成一个邮箱,两个进程利用该邮箱相互通信,信息的大小与邮箱的大小相同。哪一个进程为发送进程,哪一个进程为接收进程是随机的,由随机函...

于 2023-01-04 发布 文件大小:1.28 kB
0 123
下载积分: 2 下载次数: 1

代码说明:

模拟进程利用双向邮箱通信 随机生成一个邮箱,两个进程利用该邮箱相互通信,信息的大小与邮箱的大小相同。哪一个进程为发送进程,哪一个进程为接收进程是随机的,由随机函数随机选择。但是若一进程成为发送进程,那么另一个进程只能是接收进程。如果没有申请到资源,就不能建立邮箱,发送进程不能发送消息。如果邮箱中没有空闲单元,发送进程不能够发送消息;如果邮箱中没有消息,接收进程不能够接收消息。-modeling process using two-way communications mail generates a random mailbox, the two processes use of the mail to communicate with each other, information and the size of the same size mail. A process for which this process, a process for which the receiving process is random, random function randomly selected. However, if this process is to be a process, then another process can only be receiving process. If there is no application of resources, the building of mail, send process can send messages. If the mailbox no spare units, sending process can not send messages; If no news mail, the receiving process can not receive information.

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

发表评论

0 个回复

  • 一个makefile自动编译的模版
    学习socket通信 ,熟悉 makefile 编写的例子。 自动生成依赖关系。
    2022-03-20 11:12:17下载
    积分:1
  • 读取发送到局域网中,winsock,CFile
    读取文件发送到局域网中,winsock,CFile-Read the document sent to the local area network, winsock, CFile
    2022-07-04 13:17:42下载
    积分:1
  • PGM 筛选器
    在加载一个结构的元素和原始的照片。铂族金属的格式。 然后选择该筛选器,并应用,然后保存生成的图像。 阅读的 Readme.txt 文件 (在葡萄牙 LeiaMe.txt)
    2022-03-21 21:03:31下载
    积分:1
  • mapinfo二次开发,检查数据格式是否为等值线数据
    mapinfo二次开发,检查数据格式是否为等值线数据-MapInfo secondary development, inspection data format for data isogram
    2023-07-24 06:50:03下载
    积分:1
  • CIniFile功能很多,直接将ini读写简单,CON…
    cinifile类封装了大量的函数,能直接对ini文件进行读写操作,操作简单,方便,实用-cinifile a lot of functions, will direct the ini file read and write simple, convenient and practical
    2022-03-23 14:35:55下载
    积分:1
  • File Format for programming logic in develop program
    File Format for programming logic in develop program
    2023-01-14 05:55:03下载
    积分:1
  • scheduling process management processor is the core content. The experiment call...
    进程调度是处理机管理的核心内容。本实验要求用C语言编写和调试一个简单的进程调度程序。通过本实验可以加深理解有关进程控制块、进程队列的概念,并体会和了解优先数和时间片轮转调度算法的具体实施办法-scheduling process management processor is the core content. The experiment called for using the C language and debug a simple process scheduler. Through this experiment can deepen our understanding of the process control block, the concept of the process of formation and to experience and understand a few priorities and time-Cycle Scheduling Algorithm of concrete measures for implementation
    2022-04-30 03:24:33下载
    积分:1
  • 编写的一个右移的源程序,供大家参考。
    编写的一个文件右移的源程序,供大家参考。-A document prepared by the source shifted to right, for your reference.
    2022-08-21 23:26:57下载
    积分:1
  • 添加或删除
    您可以在您自己的程序中使用此代码 (和可能将它编译成一个程序和分发它允许它的语言的编译格式) 自由与不收费。 您不可以再此代码 (例如到的 web 站点) 分发未经原作者的书面许可。未能这样做是违反了版权法。 你可能会从另一个网站,链接到此代码,但如果它不封装在一个帧中的唯一。 你将会遵守任何额外的版权限制,作者可能已经放在代码或代码的描述。
    2022-04-09 08:07:07下载
    积分:1
  • 哈夫曼树编码 用哈夫曼树算法对进行0
    哈夫曼树编码 用哈夫曼树算法对文本文件进行0-1化编码,并模拟文件 压缩与解压-Huffman tree coding algorithm using Huffman tree to the text document for 0-1 coding and compression simulation and decompression
    2022-03-12 10:11:55下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载