国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

代寫(xiě)COMP 340 Operating Systems

時(shí)間:2023-11-18  來(lái)源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)


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.

 

請(qǐng)加QQ:99515681 或郵箱:99515681@qq.com   WX:codehelp

 

掃一掃在手機(jī)打開(kāi)當(dāng)前頁(yè)
  • 上一篇:代寫(xiě)MATH36031、代做MATLAB編程設(shè)計(jì)
  • 下一篇:代寫(xiě)CSE 158、代做Python語(yǔ)言編程
  • 無(wú)相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真技術(shù)服務(wù)
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲勞振動(dòng)
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)40個(gè)行業(yè)
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)4
    超全面的拼多多電商運(yùn)營(yíng)技巧,多多開(kāi)團(tuán)助手,多多出評(píng)軟件徽y1698861
    超全面的拼多多電商運(yùn)營(yíng)技巧,多多開(kāi)團(tuán)助手
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服務(wù)平臺(tái)
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內(nèi)
    釘釘簽到打卡位置修改神器,2026怎么修改定
    2025年10月份更新拼多多改銷助手小象助手多多出評(píng)軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)/客戶要求/設(shè)計(jì)優(yōu)化
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)
  • 短信驗(yàn)證碼 寵物飼養(yǎng) 十大衛(wèi)浴品牌排行 目錄網(wǎng) 排行網(wǎng)

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號(hào)-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    国产精品第七影院| 国产精品视频久久久久| 色中色综合成人| 国产精品露出视频| 国产v亚洲v天堂无码| 97人人香蕉| 国产精品一区二区三区免费视频| 国内自拍中文字幕| 日韩专区第三页| 亚洲 欧美 综合 另类 中字| 亚洲一区二区精品在线| 最新不卡av| 久久99久久亚洲国产| 国产精品国产三级国产专区53| 色噜噜国产精品视频一区二区| 久久婷婷开心| 久久精品国产精品国产精品污| 91av在线播放| 91国在线高清视频| 91蜜桃网站免费观看| 97精品视频在线播放| 91久久久久久久久久久久久| 91美女片黄在线观看游戏| 99热国产免费| 国产精品333| 国产福利精品视频| 久久久久久一区| 久久人人爽人人爽爽久久| 日韩中文字幕免费在线| 日本一区二区三区免费看| 日韩美女视频中文字幕| 欧美激情一区二区三区在线视频| 国模精品娜娜一二三区| 蜜臀av性久久久久蜜臀av| 国产一区二区三区四区五区在线| 国产日韩综合一区二区性色av| 国产精品第一视频| 伊人久久在线观看| 天堂资源在线亚洲视频| 日韩欧美一区三区| 国内精品视频久久| 97国产精品免费视频| 久久精品99| 国产精品大陆在线观看| 亚洲综合精品伊人久久| 日日摸日日碰夜夜爽av| 欧美一区二区中文字幕| 国产欧美精品在线| www日韩视频| 久久久久久伊人| 国产99在线免费| 日本一区二区三区视频在线播放| 精品人妻少妇一区二区| 成人av免费电影| 日韩一区二区精品视频| 色综合久久久久久中文网| 日韩中文字幕亚洲精品欧美| 国内精品久久久久久中文字幕| 91久久久一线二线三线品牌| 国产成人精品在线| 亚洲一区精彩视频| 激情小视频网站| …久久精品99久久香蕉国产| 国产成人鲁鲁免费视频a| 在线播放豆国产99亚洲| 欧美日韩精品综合| 91精品久久久久久久久久久| 国产精品美女无圣光视频| 欧美一区二区色| 国产欧美日韩综合精品| 久久99影院| 亚洲图片在线观看| 精品无码av无码免费专区| 国产成人精品久久| 美日韩精品免费观看视频| 欧美在线影院在线视频| 久久精品一区二| 亚洲高清视频一区二区| 国产一区二区在线播放| 久久久久久久久亚洲| 亚洲va欧美va在线观看| 国产自产女人91一区在线观看| 久久国产乱子伦免费精品| 久久99热精品| 国内精品模特av私拍在线观看| 久久99国产精品一区| 少妇特黄a一区二区三区| 成年人网站国产| 久久成人亚洲精品| 国内一区二区在线视频观看| 久久精品ww人人做人人爽| 亚洲一区二区三区色| 高清视频欧美一级| 欧美精品在线免费| 麻豆一区二区三区在线观看| 久久久国产91| 欧美日韩免费高清| 日韩在线中文字幕| 欧美综合第一页| 色妞欧美日韩在线| 日韩毛片在线免费看| www.欧美免费| 欧美中文在线观看国产| 久久久久这里只有精品| 日韩美女免费线视频| 日韩在线视频网站| 欧美激情亚洲天堂| 国产精品久久久久久久久久久新郎| 欧美亚洲另类在线| 久久天天躁狠狠躁老女人| 欧美精品成人网| 国产精品日韩在线| 国产午夜福利在线播放| 一区二区三区四区视频在线观看| 成人a级免费视频| 亚洲影院污污.| 国产精品12345| 日本不卡一区二区三区在线观看| 国产成人精品最新| 精品一区二区国产| 中文字幕中文字幕在线中心一区| 91精品国产乱码久久久久久久久| 午夜精品一区二区三区av | 国产精品入口免费视| 国产主播精品在线| 亚洲视频电影| 久久久久久av无码免费网站下载| 热99在线视频| 国产精品久久久久久久免费大片| 国产伦视频一区二区三区| 性一交一乱一伧国产女士spa| 少妇久久久久久| 国产免费久久av| 日本乱人伦a精品| 国产精品免费看久久久无码| 成人a视频在线观看| 青青草久久网络| 中国人体摄影一区二区三区| 69精品丰满人妻无码视频a片| 欧美日韩喷水| 亚洲在线观看一区| 精品国产一区二区三区久久久狼| 国产裸体免费无遮挡| 日本亚洲精品在线观看| 欧美成人四级hd版| 久久亚洲精品无码va白人极品| 内射国产内射夫妻免费频道| 亚洲人成人77777线观看| 国产精品日韩专区| 久久久亚洲国产| 免费国产成人av| 日韩精品另类天天更新| 在线天堂一区av电影| 国产精品视频播放| 777国产偷窥盗摄精品视频| 国内精品国产三级国产在线专| 亚洲丰满在线| 精品国产一区二区三区四区精华 | 欧美一级片中文字幕| 精品国产免费av| 久久久久久精| 97久久精品视频| 国产欧美韩日| 激情六月丁香婷婷| 日韩一级免费在线观看| 亚洲色欲久久久综合网东京热| 国产精品海角社区在线观看| 久久99久久久久久| 99久re热视频这里只有精品6| 成人av一级片| 国产综合第一页| 欧美日韩天天操| 日韩区国产区| 日韩av免费看| 亚洲色婷婷久久精品av蜜桃| 国产精品大陆在线观看| 久久精品国产99国产精品澳门| 国产精品7m视频| 99久久99久久精品| 国产精品一区在线观看| 日本一区二区三区视频在线观看 | 五月天色婷婷综合| 无码免费一区二区三区免费播放| 欧美成年人视频| 国产精品成人aaaaa网站| 久久久久久国产免费| 久草热视频在线观看| 久久久久狠狠高潮亚洲精品| 久久频这里精品99香蕉| 国产精品18久久久久久首页狼| 91精品国产自产91精品| 91精品国产高清自在线| 日韩欧美精品在线观看视频| 日本精品一区二区三区高清 久久| 午夜精品久久久久久久男人的天堂 | 久久久极品av| 久久久久久精| 色妞久久福利网| 久久久精品国产一区二区| 国产精品无码人妻一区二区在线 |