加勒比久久综合,国产精品伦一区二区,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

    婷婷精品在线观看| 国产在线观看www| 亚洲va久久久噜噜噜久久| 理论片午夜视频在线观看| 成人婷婷网色偷偷亚洲男人的天堂| 99精品国产99久久久久久福利| 夜夜嗨一区二区三区| 一区二区在线视频观看| 国内自拍一区| 国产 日韩 欧美一区| 中文亚洲欧美| 99久久亚洲精品| 日韩精品丝袜美腿| 亚洲精品美女91| 91精品xxx在线观看| 制服诱惑一区二区| 99久久www免费| 视频国产精品| 亚洲综合婷婷| 欧美一区91| 日韩欧美视频在线播放| 亚洲神马久久| 91精品国产91久久久久久密臀| 日韩电影免费在线看| 欧美日韩一卡| 国产福利亚洲| 日韩欧美综合| 久久久久久婷| 99热这里只有成人精品国产| 久久精品av| 成人午夜网址| 日韩在线观看中文字幕| 国产欧美日韩视频在线| 亚洲国产三级| 麻豆精品蜜桃视频网站| ww久久综合久中文字幕| 日韩毛片视频| 在线精品亚洲欧美日韩国产| 欧美wwwww| 久热精品视频| 久久国产成人| 久久aⅴ国产紧身牛仔裤| 亚洲精品国产首次亮相| 99成人在线视频| 欧美aaaaaaaa牛牛影院| 98视频精品全部国产| 久久综合偷偷噜噜噜色| 亚洲制服欧美另类| 亚洲欧美日本伦理| 美女久久99| 偷拍自拍一区| 久久久国产精品入口麻豆| 美女久久99| 日韩三区视频| 亚洲五码在线| 成人中文字幕视频| 精品国产99| 麻豆精品99| 欧美一区二区性| 欧美伦理影院| 亚洲激情欧美| 久久性色av| 国产免费拔擦拔擦8x在线播放| 日本一区二区在线看| 中文字幕高清在线播放| 日韩一区二区在线免费| 97精品国产综合久久久动漫日韩| 91p九色成人| 美女视频网站久久| 日本视频一区二区| 韩国三级大全久久网站| 奇米亚洲欧美| 91欧美日韩在线| 人体久久天天| 中文亚洲字幕| 捆绑调教日本一区二区三区| 日韩高清在线| 99精品视频免费| 欧美午夜网站| 999久久精品| 欧美日韩黑人| 久久亚洲视频| av成人在线观看| 在线精品一区| 色妞ww精品视频7777| 麻豆一区二区麻豆免费观看| 2023国产精品久久久精品双| 先锋影音久久| 日本精品不卡| 亚洲一区二区av| 久久久久毛片免费观看| 99国产精品免费视频观看| 99综合在线| 亚洲不卡系列| 伊人久久大香| 欧美一区自拍| 奶水喷射视频一区| 国产综合色激情| 奇米亚洲欧美| 欧美亚洲精品在线| 国产剧情av在线播放| 日韩专区视频网站| 日韩av三区| 国内亚洲精品| 国产精品原创| 日韩国产高清影视| 激情综合婷婷| 国产毛片久久| 久久亚洲人体| 中文字幕一区日韩精品| 黑人一区二区| 深夜福利亚洲| 色悠久久久久综合先锋影音下载| 免费国产自久久久久三四区久久 | 美女黄网久久| 99精品视频免费观看视频| 精品欧美视频| 尤物在线精品| 男人亚洲天堂| 7777精品| 天堂成人国产精品一区| 日本不卡视频在线| 精品国产91乱码一区二区三区四区 | 激情亚洲影院在线观看| 精品一区二区三区亚洲| 久久一级电影| 欧美亚洲人成在线| 亚洲天堂av资源在线观看| 丝袜脚交一区二区| 国产欧美三级| 99久久九九| 日韩不卡视频在线观看| 日本在线视频一区二区三区| 欧美综合二区| www.久久99| 亚洲深夜福利| 亚洲欧美网站在线观看| 免费精品国产的网站免费观看| av在线播放一区| 成人av婷婷| 91看片一区| 国产精品中文字幕制服诱惑| 多野结衣av一区| 精品视频在线观看网站| 91麻豆国产自产在线观看亚洲| 9999精品| 免费在线观看成人| 国模吧精品视频| 噜噜噜在线观看免费视频日韩| 91国产一区| 欧美资源在线| 亚洲区小说区图片区qvod按摩| 宅男噜噜噜66一区二区| 亚洲伊人精品酒店| 可以免费看不卡的av网站| 国产一区2区| 日韩在线卡一卡二| 精品国产亚洲一区二区三区在线 | 日韩一区二区三区在线看| 超碰高清在线| 国产乱论精品| 99精品久久久| 伊人久久成人| 日韩大片在线免费观看| 国产色播av在线| 福利欧美精品在线| 久久精品国产亚洲一区二区三区| 极品裸体白嫩激情啪啪国产精品| 另类中文字幕网| 水野朝阳av一区二区三区| 国产探花一区二区| 日韩国产激情| 欧美亚洲高清| 欧洲精品99毛片免费高清观看| 久久久久久久高潮| 91精品国偷自产在线电影| 日韩精品国产精品| 99国产一区| 亚洲三区欧美一区国产二区| 先锋影音网一区二区| 成人av资源电影网站| 少妇一区二区视频| 韩国精品主播一区二区在线观看| 一区三区在线欧| 国产在线不卡一区二区三区| 伊伊综合在线| 国产精品99免费看| 日韩福利视频一区| 精品福利在线| 亚洲在线电影| 国产精品对白久久久久粗| 亚洲精品系列| 日韩成人三级| 精品1区2区3区4区| 在线精品视频一区| 欧美激情 亚洲a∨综合| 日韩在线免费| 老鸭窝毛片一区二区三区| 中文字幕伦av一区二区邻居| 国产欧美日韩一区二区三区四区|