国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女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)信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢(qián)_專(zhuān)業(yè)CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢(qián)_專(zhuān)業(yè)CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路流場(chǎng)仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路
    流體CFD仿真分析_代做咨詢(xún)服務(wù)_Fluent 仿真技術(shù)服務(wù)
    流體CFD仿真分析_代做咨詢(xún)服務(wù)_Fluent 仿真
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢(xún)外包_剛強(qiáng)度疲勞振動(dòng)
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢(xún)外包_剛強(qiáng)度疲
    流體cfd仿真分析服務(wù) 7類(lèi)仿真分析代做服務(wù)40個(gè)行業(yè)
    流體cfd仿真分析服務(wù) 7類(lèi)仿真分析代做服務(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仿真代做咨詢(xún)服務(wù)平臺(tái)
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢(xún)服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內(nèi)
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗(yàn)證碼 豆包網(wǎng)頁(yè)版入口 破天一劍 目錄網(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在线免费观看
    无码人妻精品一区二区蜜桃百度| 日韩欧美一区三区| 不卡一卡2卡3卡4卡精品在| 日韩精品一区中文字幕| 中文字幕人成一区| 国产精品久久久久久久久久| 久久久久这里只有精品| www日韩av| 国产在线视频不卡| 欧美在线日韩在线| 日韩视频在线播放| 国产精品视频一区二区三区经| 久色视频在线播放| 国产日本一区二区三区| 国产在线一区二| 欧美激情亚洲天堂| 日韩在线第三页| 亚洲激情免费视频| 大波视频国产精品久久| 欧美日本高清一区| 国产精品夫妻激情| 精品国产一区久久久| 色妞一区二区三区| 色噜噜狠狠狠综合曰曰曰| 99中文字幕| 99热亚洲精品| 91国产一区在线| 91免费看片网站| 国产精品亚洲片夜色在线| 国精产品一区一区三区有限在线| 欧美日韩亚洲一区二区三区四区| 日本免费成人网| 欧美做受高潮1| 女同一区二区| 欧美精品在欧美一区二区| 国语对白做受xxxxx在线中国| 激情五月亚洲色图| 国产欧美日韩综合一区在线观看| 国产精品亚洲一区二区三区| aaa级精品久久久国产片| 69av视频在线播放| 97免费视频在线播放| 91精品国产91久久久久福利| 成人精品在线视频| 99久久国产宗和精品1上映| 91久久精品美女| 久久综合久久久久| 三级精品视频久久久久| 国产精品久久77777| 久久av资源网站| 精品免费二区三区三区高中清不卡| 国产精品美女黄网| 中文字幕日韩精品无码内射| 亚洲人久久久| 日本在线视频www色| 欧美黄色免费影院| 成人亚洲欧美一区二区三区| 国产l精品国产亚洲区久久| 久久成人福利视频| 国产精品久久久久久久久久久久久久 | 亚洲欧美精品| 午夜老司机精品| 男女视频网站在线观看| 成 年 人 黄 色 大 片大 全| …久久精品99久久香蕉国产| 国产激情综合五月久久| 国产精品视频永久免费播放| 欧美激情在线视频二区| 奇米精品一区二区三区| 国产精品伊人日日| 久久久亚洲成人| 国产精品国语对白| 亚洲国产精品综合| 欧美在线视频导航| 91久久精品在线| 国产精品视频二| 欧美激情精品久久久| 日韩av电影国产| 国产日韩欧美在线视频观看| 久久久水蜜桃| 欧美日韩电影在线观看| 日韩精品一区二区三区四区五区| 国产原创欧美精品| 国产精品a久久久久久| 少妇久久久久久| 日韩一区不卡| 97精品久久久中文字幕免费| 九色成人免费视频| 国产在线精品一区二区三区》| 国产精品青青草| 精品欧美国产| 久久精品国产2020观看福利| 欧美在线视频网| 国产高清精品一区二区三区| 亚洲a∨一区二区三区| 国产精品一区二区免费在线观看| 美女扒开尿口让男人操亚洲视频网站| 国内精品国产三级国产在线专 | 日本免费成人网| 7777奇米亚洲综合久久| 性色av香蕉一区二区| 久久一区二区精品| 日韩精品一区二区三区久久| 91精品国产91久久久久福利| 亚洲在线不卡| 国产精品99久久99久久久二8| 春色成人在线视频| 国产二级片在线观看| 欧洲中文字幕国产精品| 精品国内产的精品视频在线观看| 欧美在线3区| 国产精品日韩一区二区三区| 国产日韩欧美在线看| 亚洲一区二区在线免费观看| 91av一区二区三区| 日本公妇乱淫免费视频一区三区| 久久久久久香蕉网| 国内精品国产三级国产在线专| 久久亚洲国产成人| 国产精品亚洲不卡a| 无码内射中文字幕岛国片| 久久精彩视频| 国产在线播放一区二区| 亚洲国产精品www| 久久久久久久久久网| 国严精品久久久久久亚洲影视 | 久久久国产在线视频| 精品视频一区二区| 动漫3d精品一区二区三区| 色老头一区二区三区| 国产一区二区免费在线观看| 中文字幕一区二区三区有限公司 | 68精品久久久久久欧美| 欧美亚洲色图视频| 欧美激情视频一区| 久久资源av| 麻豆成人av| 日韩av免费网站| 久久电影一区二区| 国产成人精品视| 国精产品一区一区三区视频 | 久久婷婷国产精品| 奇米888一区二区三区| 亚洲国产精品久久久久婷蜜芽| 青青草视频在线免费播放| 日本免费一区二区三区视频观看| 欧美一级大胆视频| 欧美激情国产精品| 久久精品国产sm调教网站演员| 蜜桃av噜噜一区二区三| 亚洲人成无码www久久久| 久久精品视频在线| 91精品久久久久久久久青青 | 九九精品在线观看| 久久99国产精品| 成人av电影免费| 黄色av网址在线播放| 性高湖久久久久久久久aaaaa| 成人97在线观看视频| 九色综合婷婷综合| 99久久99久久精品| 蜜臀久久99精品久久久酒店新书| 天堂精品视频| 国产aaa一级片| 国产精品欧美日韩一区二区| 国产精品.com| 成人精品久久一区二区三区| 韩国日本不卡在线| 欧美视频1区| 日韩xxxx视频| 亚洲www在线| 欧美日韩第一页| 精品九九九九| 精品福利影视| 久久香蕉国产线看观看av| www国产精品com| 久久久久久久久久久视频| 97久久国产精品| 成人国产精品日本在线| 国产日韩亚洲精品| 国模吧无码一区二区三区| 青青草国产精品一区二区| 午夜精品久久久内射近拍高清| 欧美日本中文字幕| 色综合91久久精品中文字幕| 国产精品高潮呻吟久久av野狼| 国产精品日韩专区| 国产精品手机播放| 日韩中文字幕精品视频| 久久国产精品网| 久久免费一区| 久久久亚洲天堂| 国产成人一区二区在线| 久久波多野结衣| 日韩在线视频播放| 日韩在线欧美在线| 国产大片精品免费永久看nba| 国产传媒一区二区| 久久九九视频| 日韩在线免费观看视频|