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爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                97se亚洲国产综合自在线观| 欧美一区二区三区思思人| 欧美日韩二区三区| 一区二区三区资源| 91国偷自产一区二区三区观看 | 精品一区二区综合| 久久综合久色欧美综合狠狠| 北条麻妃一区二区三区| 亚洲成人在线网站| 久久精品人人做人人爽97| 色94色欧美sute亚洲线路二 | 91亚洲男人天堂| 亚洲成人先锋电影| 久久久久青草大香线综合精品| 99久久精品情趣| 日韩电影免费一区| 亚洲乱码日产精品bd| 精品少妇一区二区三区在线视频 | 日韩欧美一区二区不卡| 日韩精品一区二区三区三区免费| 丁香婷婷深情五月亚洲| 日韩专区一卡二卡| 一区在线观看免费| 欧美久久久久免费| www.日韩av| 精品午夜久久福利影院 | 蜜乳av一区二区三区| 国产精品乱码久久久久久| 日韩一区二区三区电影在线观看| 91视频在线看| 成人精品视频网站| 国产在线精品不卡| 老司机一区二区| 日韩在线一区二区| 亚洲欧美日韩国产综合| 国产日韩综合av| 亚洲精品一区二区三区四区高清 | 一区二区三区四区激情| 久久精品视频在线看| 日韩一区二区三区在线观看| 在线精品视频免费播放| 一本久久综合亚洲鲁鲁五月天| 国产露脸91国语对白| 石原莉奈在线亚洲三区| 一区二区三区四区激情| 艳妇臀荡乳欲伦亚洲一区| 国产精品视频九色porn| 欧美国产日韩一二三区| 国产亚洲欧美在线| 久久精品一区八戒影视| 国产日产欧美一区二区视频| 日韩欧美在线网站| 日韩欧美国产午夜精品| 日韩一卡二卡三卡四卡| 精品嫩草影院久久| 日韩欧美激情四射| 精品国产髙清在线看国产毛片| 欧美日韩日日摸| 欧美日本一区二区在线观看| 欧美精品99久久久**| 日韩欧美精品三级| 国产午夜精品一区二区三区四区| 国产亚洲综合在线| 国产欧美日韩在线观看| 亚洲欧美偷拍卡通变态| 亚洲成av人片| 男女视频一区二区| 免费高清在线视频一区·| 免费在线看一区| 精品亚洲国产成人av制服丝袜| 九九国产精品视频| 成人午夜电影网站| 色婷婷综合中文久久一本| 欧美日韩一区二区电影| 欧美一区二区女人| 国产亚洲精久久久久久| 国产精品久久久久久久久免费桃花 | 日韩一级大片在线| 久久一区二区视频| 亚洲中国最大av网站| 蜜臀91精品一区二区三区| 国产精品夜夜嗨| 欧美视频完全免费看| 久久久久97国产精华液好用吗| 国产精品美女久久久久久久久久久 | 免费成人小视频| 99久久国产综合精品麻豆| 欧美精品在线一区二区三区| 久久美女高清视频| 亚洲国产综合在线| 国内精品免费**视频| 色狠狠一区二区| 久久婷婷色综合| 亚洲国产视频一区二区| 国产成人综合亚洲网站| 欧美日韩中文字幕精品| 中文字幕乱码久久午夜不卡| 视频在线在亚洲| 99re这里只有精品6| 欧美精品一区二区久久婷婷| 亚洲一级不卡视频| 波多野结衣精品在线| 欧美精品一区二区三区视频 | 欧美日韩在线综合| 中文字幕日韩一区| 国产精品2024| 久久综合成人精品亚洲另类欧美 | 欧美人xxxx| 玉米视频成人免费看| 不卡av电影在线播放| 国产网红主播福利一区二区| 激情综合网天天干| 久久品道一品道久久精品| 亚洲自拍偷拍九九九| 不卡一区二区三区四区| 国产欧美日韩在线| 国产a久久麻豆| 久久久精品黄色| 韩国av一区二区三区在线观看| 91精品国产免费| 日韩av不卡一区二区| 91精品国产手机| 青青草伊人久久| 国产精品久久久久7777按摩 | 欧美日韩中文字幕精品| 亚洲免费视频中文字幕| 95精品视频在线| 亚洲丝袜自拍清纯另类| 激情六月婷婷久久| 亚洲人成在线播放网站岛国| 成年人午夜久久久| 中文字幕一区二区三区在线观看 | 亚洲国产欧美日韩另类综合 | 久久综合色天天久久综合图片| 美国av一区二区| 精品少妇一区二区三区| 国产福利视频一区二区三区| 中日韩av电影| 色女孩综合影院| 香港成人在线视频| 精品91自产拍在线观看一区| 成人av免费在线观看| 亚洲卡通欧美制服中文| 欧美日韩三级一区二区| 国内精品伊人久久久久av影院 | 国产福利一区二区三区视频| 国产精品私房写真福利视频| 99精品热视频| 日韩高清不卡一区二区三区| 亚洲精品在线电影| caoporn国产精品| 五月天一区二区| 久久久久九九视频| 色综合中文综合网| 欧美日韩免费一区二区三区视频 | 日韩一区二区三区高清免费看看 | 国产精品国产馆在线真实露脸| 99国产精品久久久久久久久久| 久久精品国产77777蜜臀| 精品一区二区三区视频| 亚洲欧美日韩国产另类专区| 91精品国产色综合久久ai换脸| 国产精品66部| 男人的天堂亚洲一区| 亚洲欧美另类小说视频| 欧美精品一区二区三| 91搞黄在线观看| 国产精品系列在线观看| 午夜欧美电影在线观看| 日韩一区中文字幕| 国产亚洲成aⅴ人片在线观看| 欧美怡红院视频| 91免费视频大全| 懂色av噜噜一区二区三区av| 日本免费新一区视频| 洋洋成人永久网站入口| 国产精品美女一区二区在线观看| 精品国产第一区二区三区观看体验 | 成人h动漫精品一区二| 久久精品国产99国产精品| 午夜精品一区二区三区免费视频 | 亚洲一级在线观看| 国产精品不卡一区二区三区| 久久综合九色综合久久久精品综合| 欧美色倩网站大全免费| 91国产精品成人| 99久久婷婷国产综合精品| 久久99久久99小草精品免视看| 亚洲电影一级黄| 亚洲精品成人a在线观看| 国产精品私人影院| 中文天堂在线一区| 国产精品拍天天在线| 国产精品乱码久久久久久| 欧美激情中文不卡| 欧美高清在线精品一区| 国产日韩欧美高清| 中文字幕中文字幕在线一区 | 国产成人免费视| 成人免费黄色在线|