日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

代寫COMP 340 Operating Systems

時間:2023-11-18  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯


COMP 340 – Operating Systems

Fall, 2023

HW2: Bounded Buffer Problem

PROBLEM STATEMENT:

There are 3 generators and each produces a unique kind of material independently. All these

materials are stored in an input buffer with size 10 before they are forwarded to the operators.

We have 3 operators with same priority who are responsible for producing the products based on

these materials. Each product needs 2 different kinds of materials. Each time an operator needs 2

tools for this purpose. There are totally 3 tools provided for these operators. An operator can only

process one product at one time. When an operator gets both the materials and tools, he can

produce a product within a limited time varied from 0.01 second to 1 second. Otherwise, he has

to wait until all the necessities are met. He can grab the materials or tools first, it does not matter,

but he can only get one thing at one time. If an operator decides to make another product before

he starts to make the current product, he can put the materials and tools back and re-get the new

materials and tools. But he has to put the tools back after he finishes a product because other

operators may need these tools. All the products are put into a size-unlimited output queue. An

operator cannot start a new product before he puts the product into the output queue. Some

restrictions may apply to these products: 1) No same products can be next to each other in this

queue. We say that two products are same if they are made from the same kinds of materials. 2)

The difference of the number of any two kinds of products produced should be less than 10, for

example, we can have 10 of product A and 15 of product B, but it is not allowed if we have 10 of

A and 21 of B because the difference is 11 which is larger than 10.

SUBMISSION INSTRUCTIONS

Your assignments must be both emailed and presented in class on the due date. You will submit

a single .ZIP, .RAR or .TAR file that will contain:

1) A soft copy of your source code.

2) A Makefile to compile the code.

3) A soft copy of a report documenting the internal design of your program.

Your program must be in C/C++. It is your responsibility to make sure your program compiles

and runs smoothly under Linux. Your program should not be stalled in a dead cycle at any time.

This is the only submission method

.

DEADLINE

The deadline for homework is 11:59:59 PM on Wednesday, December 1

st, 2023. Submissions

after this deadline will be considered late and will NOT be accepted. Do not present code in a

PDF or Word document – it must be an executable .c file as in the case of the midterm. Email a

zip file to steven.pearce@ufv.ca . Do not upload to Blackboard.

GRADING

Your homework assignment is worth 10 points (10%). During the execution of your program,

you should provide these information dynamically:

1) For each material, how many of them are generated?

2) The status of the input buffer.

3) For each kind of product, how many are produced?

4) The status of the output queue.

5) How many times the deadlock happens?

Additional Notes:

Students need to be careful to design their solution in a way that avoids any potential deadlocks

that could be caused by these scenarios:

• A glut of materials of the same type in the materials queue (solution: students should

incorporate some mechanism to guarantee that there is sufficient variety in the materials

queue)

• Workers hogging tools (Possible solutions: workers attempt to grab PAIRS of tools

instead of picking them up individually. Alternatively, when a worker is holding on to a

single tool, there needs to be some mechanism like a counter that keeps track of attempts

to grab the second tool. After a certain number of unsuccessful attempts, the worker

should release the tool its holding, which would allow some other thread to grab it.)

Also provide these functions

1) Pause and resume the program at any time. 2) Make the number of operators and tools

adjustable.

Please feel free to provide additional information and functions that you consider useful.

The most important thing is to make sure your program works correctly. Do not worry about

your programming style or efficiency. But it does matter if you provide a smarter internal design

(approach) and user-friendly interface.

IMPORTANT: Your program must COMPILE AND RUN or you will get a mark of ZERO on

your assignment.

Assignment grades will be open for review for one week only.

Finally, a reminder that plagiarism will result in an automatic failing grade for the course.

 

請加QQ:99515681 或郵箱:99515681@qq.com   WX:codehelp

 

掃一掃在手機打開當前頁
  • 上一篇:代寫MATH36031、代做MATLAB編程設計
  • 下一篇:代寫CSE 158、代做Python語言編程
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    仿真分析咨詢外包服務-結構 / 熱 / CFD流體 / 電磁 / 光學CAE代做
    仿真分析咨詢外包服務-結構 / 熱 / CFD流體
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
  • 豆包網頁版入口 Trae 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

      <em id="rw4ev"></em>

        <tr id="rw4ev"></tr>

        <nav id="rw4ev"></nav>
        <strike id="rw4ev"><pre id="rw4ev"></pre></strike>
        av中文在线播放| 91精品国产调教在线观看| 麻豆精品99| 欧美日韩国产一区在线| 91精品蜜臀在线一区尤物| 国产欧美综合在线观看第十页| 精品久久久久久综合日本欧美| 日韩视频在线一区二区三区| 久草视频在线看| 日韩一级网站| 亚洲一区在线视频观看| 国产aa精品| 欧美 日韩 国产 在线| 日韩精品免费视频一区二区三区| 日韩中文字幕视频网| 精品一二三区视频| 日韩中文字幕| 欧美亚洲国产免费| 日韩欧美一级视频| 国产欧美日韩在线播放| 色欧美日韩亚洲| 国产乱国产乱老熟300部视频| 欧美日韩国产成人| 日韩一级在线免费观看| 精品国产不卡一区二区| 91午夜在线| 日韩精品手机在线观看| 中文字幕日韩第一页| 国产羞羞视频在线播放| 精品1区2区3区| 国产黄在线观看免费观看不卡| 午夜精品一区二区三区免费视频| 欧美日韩视频网站| 在线国产1区| 久久婷婷中文字幕| 日韩欧美中文字幕在线播放| 日韩精品一级| 欧美日韩在线精品成人综合网| 日韩在线视频一区二区三区| 欧美日韩人人澡狠狠躁视频| 91精品国产99| 久99久视频| 国产乱码在线观看| 日韩精品视频免费在线观看| 黄色片免费看| 天堂在线www天堂中文在线| 黄色一级大片在线免费看国产一| 亚洲最新免费视频| 亚洲一级特黄| 国产999在线观看| 久久久久黄色| 91精品国产免费久久综合| 91蜜桃在线视频| 色综合婷婷久久| 亚洲а∨精品天堂在线| 国产日韩av一区| 国产在线一区二区视频| 亚洲 欧美 中文字幕| 日韩精品第一区| 欧美性生交大片免费| 中文字幕国产日韩| 国产99亚洲| 一区二区三区精品在线| 国产一区高清视频| 精品视频999| 精品日韩在线播放| 深夜福利一区二区| 亚洲综合在线视频| 中文字幕精品一区二| 欧美日韩国产在线观看| 日韩亚洲不卡在线| 日韩高清在线不卡| www.日韩免费| 人成在线免费视频| 99精品在线播放| 亚洲最新免费视频| 国产亚洲视频中文字幕视频| 亚洲欧美99| 欧美日韩精品是欧美日韩精品| 欧美自拍一区| 欧美日韩视频免费播放| 亚洲高清免费一级二级三级| 日韩欧美国产网站| 国产欧美综合视频| 中文字幕在线官网| 国产不卡一区二区在线观看| 国产日韩精品在线看| av中文天堂在线| 日韩精品视频中文在线观看| 久久网站免费观看| 成人精品视频一区| 亚洲素人一区二区| 精品熟女一区二区三区| 国产在线观看a| 国产欧美日韩最新| 不卡福利视频| 九九九精品视频| 精品在线一区二区三区| 久久99久久久久| 91精品国产自产在线丝袜啪| 日韩欧美亚洲国产一区| 日韩欧美亚洲视频| 国产欧美综合视频| aaa免费看大片| 中文字幕日韩欧美在线| 欧美日韩精品三区| 日本免费在线视频不卡一不卡二| 国产九九在线| 国产高清精品在线观看| 中文字幕亚洲在| 日韩国产成人精品| 欧美激情视频一区二区三区在线播放| 国产日韩中文在线| 一区三区视频| 久久久99久久| av免费看在线| 五月综合激情日本mⅴ| 午夜伊人狠狠久久| 欧美日韩国产首页在线观看| 91精品国产91久久久| 国产成人精品综合网站| 亚洲一区视频在线观看视频| 99久久精品国产成人一区二区| 欧美久久久网站| 欧美不卡123| 中文字幕在线中文字幕二区| 中文在线不卡| 国产无套粉嫩白浆在线2022年| 国产无遮挡在线视频免费观看| 精品中文字幕在线| 久久99精品国产| 成人无遮挡免费网站视频在线观看| 久久激情一区| 国产三级在线观看视频| 一区免费视频| 一区二区三区视频网站| 国产三级在线播放| 久久久久久99精品| 国产一卡2卡3卡免费网站| 国产婷婷色一区二区三区| 久久久91精品国产| 日韩va亚洲va欧洲va国产| 欧美不卡视频一区发布| 国产123在线| 精品人妻一区二区三区视频| 欧美日韩一二三四| 欧美不卡一二三| 国产手机视频一区二区| 日韩中文字幕亚洲| 91精品免费看| www在线视频| 亚洲一区精品在线| 国产欧美日韩在线视频| 在线一区二区三区精品| 国产乱码在线| 国产视频1区| 日韩欧美亚洲国产一区| 中文字幕在线视频精品| 中文字幕亚洲一区二区av在线| 国产69精品久久app免费版| 日韩视频 中文字幕| wwwwww国产| 日韩国产欧美亚洲| 在线国产91|