99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

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

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

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網

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

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

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          欧美高清成人| 一本久久a久久免费精品不卡| 国产欧美日韩亚州综合| 亚洲福利电影| 午夜在线a亚洲v天堂网2018| 午夜视频在线观看一区| 麻豆乱码国产一区二区三区| 国产精品久久久久免费a∨大胸| 国产在线精品成人一区二区三区| 日韩视频亚洲视频| 欧美成人精品不卡视频在线观看| 国产精品久久久91| 一区二区三区四区蜜桃| 免费美女久久99| 永久免费毛片在线播放不卡| 久久av红桃一区二区小说| 国产精品护士白丝一区av| 一区二区三区高清在线| 欧美四级电影网站| 亚洲综合色噜噜狠狠| 国产精品午夜久久| 久久久成人精品| 有坂深雪在线一区| 久久免费视频一区| 亚洲第一网站| 欧美日韩国产美| 亚洲欧美另类在线| 最新69国产成人精品视频免费| 久久人人精品| 在线亚洲激情| 国产视频在线观看一区| 久久女同互慰一区二区三区| 亚洲欧洲日韩在线| 欧美亚男人的天堂| 久久精品理论片| 99国内精品久久| 好吊成人免视频| 欧美性大战xxxxx久久久| 欧美中文字幕在线| 日韩视频在线观看| 国产一区二区三区精品久久久| 另类春色校园亚洲| 亚洲综合精品自拍| 日韩视频在线一区二区| 国产视频一区免费看| 国产精品国产三级国产aⅴ9色| 免费亚洲网站| 麻豆成人综合网| 欧美一级在线亚洲天堂| 一区二区三区**美女毛片| 亚洲国产成人久久| 雨宫琴音一区二区在线| 国产欧美日韩精品一区| 欧美日本成人| 欧美二区在线| 久久中文字幕一区| 久久国产婷婷国产香蕉| av成人免费| 这里只有精品电影| 亚洲午夜精品久久| 亚洲欧美日韩电影| 亚洲摸下面视频| 欧美一级大片在线观看| 久久精品五月婷婷| 欧美高清在线精品一区| 欧美性开放视频| 国产在线观看一区| 亚洲日本中文字幕免费在线不卡| 亚洲精品一区二区三区在线观看| 亚洲精品字幕| 久久国产精品亚洲77777| 久久久激情视频| 欧美三区不卡| 国产九九精品| 在线精品观看| 香蕉成人啪国产精品视频综合网| 久久激情五月婷婷| 国产精品久久| 曰韩精品一区二区| 99re6这里只有精品| 亚洲中字在线| 性色av香蕉一区二区| 在线亚洲一区二区| 午夜视频一区在线观看| 欧美日本精品| 亚洲国产二区| 欧美一区日韩一区| 欧美激情视频在线免费观看 欧美视频免费一| 欧美日韩在线播放一区二区| 亚洲激情视频网| 久久婷婷亚洲| 国产一区二区三区的电影| 一区二区三区国产在线| 欧美经典一区二区| 亚洲肉体裸体xxxx137| 你懂的视频欧美| 国产自产在线视频一区| 久久国产婷婷国产香蕉| 国产免费一区二区三区香蕉精| 亚洲午夜国产成人av电影男同| 欧美精品一区二区久久婷婷| 黄页网站一区| 久久青草欧美一区二区三区| 欧美日韩国产精品专区| 欧美日韩国产影片| 91久久在线视频| 国产精品系列在线| 久久漫画官网| 在线免费观看日本欧美| 欧美大片免费观看在线观看网站推荐| 亚洲国产精品第一区二区三区| 欧美激情1区2区| 日韩视频欧美视频| 国产亚洲欧美在线| 欧美日韩在线播放三区| 久久av在线看| 亚洲欧美日韩国产综合在线| 精品动漫3d一区二区三区免费| 老司机久久99久久精品播放免费| 一区二区成人精品| 亚洲大胆女人| 国产一区自拍视频| 国产精品久久久久影院色老大| 欧美电影在线观看完整版| 久久久免费精品| 欧美影视一区| 性高湖久久久久久久久| av成人免费观看| 91久久亚洲| 亚洲精品中文字幕女同| 亚洲国产导航| 欲香欲色天天天综合和网| 国产日韩一区欧美| 国产精品国产福利国产秒拍| 欧美日韩日日夜夜| 欧美性jizz18性欧美| 欧美日韩国产黄| 欧美日韩一区二区在线| 欧美三级视频在线播放| 国产精品白丝jk黑袜喷水| 欧美性生交xxxxx久久久| 国产精品红桃| 国产婷婷成人久久av免费高清 | 亚洲日本中文字幕| 国产一区二区三区在线观看网站 | 欧美激情偷拍| 国产精品国产三级国产专区53| 国产精品白丝jk黑袜喷水| 国产精品网站在线播放| 国产亚洲成精品久久| 精品99一区二区| 中文av一区特黄| 午夜精品久久久久久久99热浪潮| 久久久999成人| 欧美激情综合| 韩日精品在线| 亚洲男同1069视频| 欧美精品www在线观看| 国产视频观看一区| 午夜精品偷拍| 伊人婷婷欧美激情| 亚洲国产欧美一区二区三区久久| 久久久久久久成人| 亚洲国产精品成人va在线观看| 亚洲欧美第一页| 国产精品日日摸夜夜添夜夜av| 国产精品久久一卡二卡| 日韩一级大片| 欧美经典一区二区三区| 亚洲欧洲日产国产综合网| 久久琪琪电影院| 黄色欧美成人| 女人香蕉久久**毛片精品| 亚洲观看高清完整版在线观看| 欧美一区二区精品| 亚洲国产精品第一区二区| 欧美日韩国产精品| 性娇小13――14欧美| 国内伊人久久久久久网站视频| 免费亚洲婷婷| 亚洲视频在线观看视频| 国产亚洲视频在线| 欧美精品一线| 久久riav二区三区| 亚洲日韩成人| 国产精品视频不卡| 免费在线亚洲欧美| 午夜在线视频观看日韩17c| 亚洲精品美女久久久久| 狠狠色丁香婷婷综合影院| 最新中文字幕亚洲| 性8sex亚洲区入口| 亚洲午夜未删减在线观看| 中文网丁香综合网| 亚洲女女做受ⅹxx高潮| 亚洲国产日韩欧美在线99| 伊人精品成人久久综合软件| 国产一级久久| 国内精品一区二区| 国产亚洲精品自拍|