加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

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

代寫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語言編程
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

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

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

    日本成人在线一区| 国产亚洲精品v| 中文字幕一区二区三区在线视频| 国产精品视频| 大香伊人久久精品一区二区| 国产精品mv在线观看| 免费成人在线观看视频| 91精品蜜臀一区二区三区在线| 中文视频一区| www.一区| 97久久视频| 亚洲第一偷拍| 国产精品中文字幕制服诱惑| 不卡一区视频| 97精品国产综合久久久动漫日韩| 香蕉久久a毛片| 成人久久一区| 日本精品国产| 亚洲欧洲一二区| 亚洲高清网站| 日韩一区二区在线免费| 老司机精品福利视频| 亚洲国产专区| 欧美自拍一区| 1769国产精品视频| 国产一区二区亚洲| 影音先锋一区| 欧美在线免费| 主播大秀视频在线观看一区二区| 男男成人高潮片免费网站| 天天天综合网| 麻豆精品av| 精品香蕉视频| 91成人午夜| 秋霞一区二区| 日韩高清在线观看一区二区| 国产成年精品| 日本aⅴ亚洲精品中文乱码| 成人亚洲视频| 亚洲国产一区二区久久| 日韩高清中文字幕一区二区| 成年男女免费视频网站不卡| 成人精品视频| 国产精品99久久精品| 老**午夜毛片一区二区三区| 国产亚洲精品v| 日韩午夜黄色| 日韩天堂av| 国产精品普通话对白| 好看的亚洲午夜视频在线| 不卡中文字幕| 欧美女人交a| 在线视频免费在线观看一区二区| 五月天激情综合网| 欧美日韩国产欧| av不卡在线| 日韩在线一区二区三区| 免费高清视频精品| 黑森林国产精品av| 美女网站视频一区| 久久久久黄色| 日本不卡一二三区黄网| 亚洲有吗中文字幕| 国产精品密蕾丝视频下载| 亚洲人成网77777色在线播放| 国产一区二区亚洲| 精品国产18久久久久久二百| www.国产精品一区| 91精品秘密在线观看| 亚洲精彩视频| 天堂av在线一区| 在线精品亚洲欧美日韩国产| www.成人在线视频| 国产精品激情| 亚洲区小说区| 欧美调教网站| 亚洲免费大片| 亚洲精品永久免费视频| 国产经典一区| 青青草成人在线观看| 欧美一区一区| 日韩电影免费在线看| 精品视频高潮| 一本久久综合| 成人小电影网站| 国产精品亚洲成在人线| 成人噜噜噜噜| 亚洲成人五区| 黑人一区二区三区四区五区| 国产精品论坛| 欧美一级二区| 日韩成人在线观看视频| 亚洲国内欧美| 欧美3p视频| 欧美亚洲免费| 日韩av一二三| 午夜久久久久| 电影天堂国产精品| 成人污污视频| 亚洲成人精品| 日韩精品一二三| 亚洲国产91| 日本在线一区二区三区| 婷婷综合网站| 日本久久久久| 久久99国产精品视频| 久久影院一区| av女在线播放| 亚洲香蕉久久| 在线日韩视频| 亚洲风情在线资源| 欧美日韩中出| jiujiure精品视频播放| 日韩在线看片| 日韩高清影视在线观看| 国产精品88久久久久久| 伊人久久视频| 国产成年精品| 免费久久久久久久久| 日韩欧美一区免费| 国产精品一区高清| 狠狠入ady亚洲精品| 国产成人久久精品麻豆二区| 亚洲成a人片77777在线播放| 在线国产一区| 成人黄色免费观看| 欧美三区不卡| 日本午夜一区| 最近国产精品视频| 99成人免费视频| 六月丁香婷婷久久| 精品国产美女| 亚洲成av在线| av一级亚洲| 中文在线8资源库| 国产视频一区二| 黄色日韩在线| 在线看片日韩| 免费观看久久av| 日韩精品福利网| 欧美天天综合| 国产亚洲欧美日韩精品一区二区三区| avtt综合网| 天堂av在线| 国产一区二区三区不卡av| 日韩毛片视频| 给我免费播放日韩视频| 日韩欧美1区| 黄色美女久久久| 欧美gv在线| 高清日韩中文字幕| 成人午夜sm精品久久久久久久| 黑人久久a级毛片免费观看| 日韩av免费| 国产精品流白浆在线观看| 亚洲综合av一区二区三区| 欧美日韩麻豆| 久久精品午夜| 一区免费视频| 欧美精美视频| 国产精品久久久久久久| 一区中文字幕| 福利精品一区| sdde在线播放一区二区| 国产精品777777在线播放| 石原莉奈一区二区三区在线观看| 久久综合影院| 视频在线日韩| 久久一本综合| 96视频在线观看欧美| 蜜桃av噜噜一区二区三区小说| 日本在线成人| 国产精品尤物| 亚洲一区二区动漫| 亚洲国产视频二区| 久久精品二区亚洲w码| jizzjizz欧美69巨大| 国内精品久久久久久久影视简单| 色999日韩| 老司机精品在线| 91麻豆精品一二三区在线| 日本乱码一区二区三区不卡| 久久久亚洲一区| 亚洲天堂网站| 免费成人在线电影| 狠久久av成人天堂| 99香蕉久久| 乱一区二区av| av资源中文在线| 久久影视一区| 亚洲影院天堂中文av色| 成人四虎影院| 性色一区二区三区| 久草精品视频| 国产精品一区二区av交换| 欧美一级网址| 日韩成人精品一区二区| 欧美 日韩 国产一区二区在线视频 | 精品国精品国产自在久国产应用 | 热久久久久久久|