国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

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

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

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 豆包網頁版入口 破天一劍 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    明星裸体视频一区二区| 一区二区精品在线观看| 色综合久久av| 国产精品国产亚洲伊人久久| 99视频在线免费| 国产日本欧美在线| 精品无人乱码一区二区三区的优势| 日本一区视频在线观看| 在线视频亚洲自拍| 精品伦理一区二区三区| 国产精品美女999| 91av国产在线| 国产精品一区二区女厕厕| 国产在线高清精品| 麻豆成人av| 国产在线精品一区二区中文| 欧美日韩一区二区三区免费 | 精品午夜一区二区三区| 黄色一级免费大片| 国产一区二区三区乱码| 免费日韩中文字幕| 国产一区二区三区四区五区在线| 麻豆成人在线播放| 国产欧美欧洲| 欧美精品尤物在线| 日本一区二区免费高清视频| 少妇久久久久久被弄到高潮| 日本欧美一二三区| 欧美一区二区在线| 精品1区2区| 99久久精品免费看国产四区| 精品国产一区二区三区在线观看| 国产精品海角社区在线观看| 欧美激情亚洲精品| 欧美一区二区三区在线播放| 国产在线拍偷自揄拍精品| 91精品国产高清久久久久久91裸体| 国产成人拍精品视频午夜网站| 欧美日韩电影在线观看| 日韩精品免费播放| 国产三级精品网站| 国产成人激情小视频| 久久精品99久久久香蕉| 久久av.com| 国产精华一区| 国产精品免费一区二区三区都可以| 国产精品视频内| 亚洲一区二区三区精品在线观看 | 国产精品久久久久一区二区| 欧美美最猛性xxxxxx| 日韩福利在线| 成人国产亚洲精品a区天堂华泰| 国产成人精彩在线视频九色| 精品国产一区二区三区四区vr| 精品一区2区三区| 国产毛片视频网站| 国产成a人亚洲精v品在线观看| 久久久国产成人精品| 国产精品国产三级国产专播精品人 | 日韩视频在线观看视频| 久久久精品欧美| 日韩一区不卡| 国产欧美在线播放| 国产精品区免费视频| 日本一区二区三区四区在线观看| 国产午夜精品视频一区二区三区| 高清欧美精品xxxxx| 久久久久久网站| 日本在线一区| 国产伦精品一区二区三区高清| 久久久久久国产精品免费免费| 一本色道婷婷久久欧美| 免费一级特黄毛片| 国产精品免费看久久久无码| 日韩精品极品视频在线观看免费| 国产精品aaa| 亚洲女人毛片| 国产精品aaa| 亚洲一区二区三区精品动漫| 91九色单男在线观看| 无码内射中文字幕岛国片| 隔壁老王国产在线精品| 色中色综合影院手机版在线观看| 国产日韩欧美黄色| 欧美xxxx14xxxxx性爽| 成人av男人的天堂| 五月天婷亚洲天综合网鲁鲁鲁| 97人人模人人爽人人喊38tv| 日韩中文字幕av在线| 国产成人艳妇aa视频在线| 日韩av片免费在线观看| 日韩视频中文字幕| 国产综合视频在线观看| 中文字幕中文字幕在线中心一区| 国产裸体舞一区二区三区| 亚洲欧洲精品在线观看| 久久全球大尺度高清视频| 日韩欧美电影一区二区| 久久久亚洲天堂| 久久久999免费视频| 欧美在线一区二区三区四区| 久久这里只有精品视频首页| 99久久精品久久久久久ai换脸 | 国产精品欧美一区二区| 免费在线a视频| 亚洲综合欧美日韩| 久久精品人人做人人爽电影| 免费不卡亚洲欧美| 婷婷视频在线播放| 国产精品免费观看高清| 国产欧美日韩高清| 少妇av一区二区三区无码 | 欧美精品一区二区三区免费播放| 国产精品高潮呻吟久久av野狼| caoporn国产精品免费公开| 欧美一区视频在线| 欧美激情网站在线观看| 色婷婷久久av| 久久久亚洲成人| 国产亚洲黄色片| 日韩国产在线一区| 日韩中文字幕组| 国产精品日韩久久久久| 国产福利视频在线播放| 欧美 国产 日本| 视频一区视频二区视频| 日韩中文字幕国产精品| 7777免费精品视频| 国产亚洲精品网站| 好吊色欧美一区二区三区| 青青在线视频免费观看| 日韩久久久久久久久久久久久| 日本新janpanese乱熟| 日本一区二区免费高清视频| 天天综合色天天综合色hd| 午夜精品久久久99热福利| 亚洲乱码日产精品bd在线观看| 久久av秘一区二区三区| 九色综合日本| 久久久久久久久久婷婷| 91av中文字幕| 久久99蜜桃综合影院免费观看| 久久99精品久久久久久青青日本| 久久久噜噜噜久噜久久| 国产精品久久一| 一级特黄录像免费播放全99| 亚洲丰满在线| 人妻无码视频一区二区三区| 欧美极品jizzhd欧美| 麻豆精品传媒视频| 91精品91久久久久久| 九九久久99| 久久九九全国免费精品观看| 久久精品国产一区二区三区| 久久亚洲国产精品成人av秋霞| 亚洲综合精品一区二区| 日韩精品无码一区二区三区免费| 国模私拍视频一区| 99精彩视频| 国产精品av网站| 国产精品高清网站| 少妇精品久久久久久久久久| 国产视频观看一区| 97免费视频在线| 久久天天躁狠狠躁老女人| 久久成年人视频| 日本久久中文字幕| 色噜噜狠狠色综合网| 国内精久久久久久久久久人| 99在线观看视频网站| 国产精品精品国产| 奇米四色中文综合久久| 91久久国产自产拍夜夜嗨 | 国产成人精品一区二区三区| 中文字幕99| 国产性生活免费视频| 国产经品一区二区| 青春草在线视频免费观看| 在线观看一区二区三区三州| 亚洲欧洲日韩综合二区| 亚洲午夜激情| 日韩a∨精品日韩在线观看| 日韩视频精品| 国产在线视频一区| 91久久国产综合久久91精品网站| 久久99精品久久久久久久久久| 久久在精品线影院精品国产| 亚洲爆乳无码专区| 欧美高清性xxxxhd| 99久久99久久| 国产精品无码人妻一区二区在线| 一道精品一区二区三区| 欧洲精品一区二区三区久久| 国产欧美一区二区白浆黑人| 久久精品二区| 欧美乱大交xxxxx| 日韩免费高清在线观看| 成人黄动漫网站免费| 国产精品视频网站| 日本在线精品视频|