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

          欧美色综合天天久久综合精品| 欧美日韩国产色视频| 久久综合久久综合九色| 国产精品观看| 亚洲人体一区| 欧美激情在线播放| 亚洲国产成人久久| 久久久五月婷婷| 国产一区二区三区在线观看网站| 亚洲一区精品电影| 欧美体内she精视频在线观看| 91久久在线观看| 国产一区二区精品| 国产色产综合色产在线视频| 亚洲国产老妈| 一区二区三区国产在线| 欧美在线观看天堂一区二区三区 | 久久国产夜色精品鲁鲁99| 久久综合色婷婷| 国产精品极品美女粉嫩高清在线| 国产亚洲一区二区三区| 日韩午夜在线| 久久免费精品视频| 欧美亚韩一区| 亚洲人成网站精品片在线观看| 亚洲欧美激情视频在线观看一区二区三区 | 久久久国产成人精品| 欧美成人tv| 国产日韩欧美精品综合| 亚洲日本一区二区三区| 欧美在线观看www| 欧美大秀在线观看| 国产亚洲精品久久久久久| 亚洲每日在线| 欧美 亚欧 日韩视频在线| 国产精品一区二区三区乱码 | 国产精品久久97| 日韩午夜电影av| 欧美电影在线观看| 一区二区三区亚洲| 欧美一区二区三区在线| 国产精品高清在线| 亚洲老板91色精品久久| 免费成人在线视频网站| 国内精品国产成人| 欧美专区中文字幕| 久久精品亚洲乱码伦伦中文| 国产精品久久一区二区三区| 久久精品亚洲国产奇米99| 亚洲欧洲免费视频| 国产精品亚洲成人| 欧美成人免费全部| 亚洲已满18点击进入久久| 黄色精品网站| 欧美日韩国产成人在线免费| 午夜在线一区| 99精品国产一区二区青青牛奶 | 久久午夜精品一区二区| 日韩午夜激情| 国内一区二区三区| 欧美日韩在线播放| 久久在线播放| 亚洲欧美韩国| 99精品欧美一区| 久久久亚洲精品一区二区三区| 欧美激情视频一区二区三区在线播放| 亚洲国产精品va| 欧美日韩国产免费观看| 99re66热这里只有精品4| 国产精品hd| 欧美一区二区免费| 国内精品久久久久伊人av| 乱中年女人伦av一区二区| 亚洲黄色在线观看| 国产精品第一区| 亚洲欧美在线磁力| 狠狠色狠狠色综合日日tαg| 老司机精品福利视频| 日韩亚洲视频| 国产视频不卡| 免费在线观看日韩欧美| 一区二区三区欧美成人| 国产亚洲第一区| 欧美久久九九| 久久免费视频观看| 亚洲茄子视频| 国产欧美精品| 欧美日本韩国一区| 欧美专区日韩专区| 日韩一级黄色av| 国产亚洲一区在线播放| 欧美激情aⅴ一区二区三区| 亚洲一区自拍| 91久久在线| 国产欧美精品日韩精品| 欧美精品一线| 久久天天躁狠狠躁夜夜av| 宅男精品导航| 在线观看日韩www视频免费 | 亚洲第一天堂av| 国产精品一区二区久久精品 | 欧美激情一区二区三区全黄| 欧美亚洲一区| 中文精品视频| 亚洲精品国产视频| 经典三级久久| 一本久久综合| 制服丝袜亚洲播放| 亚洲男女毛片无遮挡| 亚洲欧美日韩在线高清直播| 久久国产精品99国产精| 久久精品30| 免费在线成人av| 欧美精品三级在线观看| 国产精品乱子乱xxxx| 国产综合欧美| 91久久久久久国产精品| 亚洲少妇在线| 欧美在线播放| 欧美18av| 国产精品久久999| 黄色成人片子| 日韩视频在线播放| 午夜精品福利在线| 美女主播视频一区| 欧美日韩天堂| 精品69视频一区二区三区| 日韩亚洲一区二区| 国产一在线精品一区在线观看| 欧美大片在线影院| 欧美久久一区| 欧美日韩国产成人在线| 欧美日韩久久久久久| 欧美日本韩国一区| 欧美日韩中文在线观看| 欧美日韩一区在线观看视频| 欧美精品日本| 欧美偷拍一区二区| 国产精品久久久久久久久婷婷| 欧美视频在线看| 国产九九精品视频| 国产亚洲欧美日韩一区二区| 国产一区二区在线观看免费| 黄色精品一区二区| 亚洲经典一区| 在线视频欧美日韩精品| 亚洲综合第一| 久久免费视频网| 欧美不卡高清| 欧美日韩日本网| 国产午夜久久| 亚洲国产欧美一区二区三区同亚洲| 亚洲激情视频网| 亚洲在线播放电影| 久久精品国产在热久久| 欧美成年人视频网站欧美| 欧美女同在线视频| 国产精品永久| 亚洲国内自拍| 亚洲欧美中文日韩在线| 久久综合一区二区三区| 欧美日韩在线观看视频| 国产啪精品视频| 亚洲国产小视频在线观看| 9i看片成人免费高清| 欧美在线视频二区| 欧美精品一区二区在线播放| 国产精品综合色区在线观看| 亚洲第一区在线观看| 亚洲免费视频成人| 榴莲视频成人在线观看| 欧美片在线播放| 国语自产精品视频在线看一大j8 | 国产麻豆精品视频| 一区二区三区鲁丝不卡| 欧美日韩激情网| 一区二区福利| 国产精品www网站| 亚洲五月六月| 国产精品久久97| 午夜精品视频网站| 国产日韩欧美日韩| 久久国产天堂福利天堂| 国产亚洲一区精品| 久久免费高清视频| 亚洲第一色中文字幕| 欧美二区在线| 99国产成+人+综合+亚洲欧美| 欧美精品在线网站| 亚洲天堂av图片| 国产麻豆精品在线观看| 久久国产精品一区二区三区| 国自产拍偷拍福利精品免费一| 久久久www成人免费精品| 亚洲电影天堂av| 欧美日韩不卡一区| 亚洲嫩草精品久久| 狠狠色狠狠色综合日日小说| 欧美电影资源| 欧美成人午夜影院|