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

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

代做EEE6207、代寫 c/c++語言程序

時間:2024-01-28  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



EEE6207 Coursework Assignment 202**024
 
You will write and test a C program that implements a model of a number of independent Producer and Consumer entities that fill and drain a queue. C models are often used to emulate the behaviors of various hardware, software and distributed computing systems. Examples include determining how big a buffer should be sized so it doesn’t cause stalling and underutilization in a new hardware microarchitecture. We won'tbe doing any analysis on the model we write here in a way amicroarchitect would. Still, this sort of exercise, which includes an element of random traffic modelling, is definitely somethingyou might see used to help size a system or even determine how big a run queue in an operating system or web serverimplementation might be.
 
Model Specification
 
Implement a C-code model that emulates a system with n Producers and m Consumers which interacting through a shared queue
 
• Each Producer process (Pn) should generate a stream of random integers, writing them into a shared queue. It should then wait for a random number of seconds (up to some specified maximum value) before attempting its nextwrite.
• Each Consumer process (Cn) should read an item from the shared queue if one is available and display it to the standard output. It should then wait for a random number of seconds (up to some specific maximum value) before attempting its next read. 
• The queue should be implemented as a last in, first out, LIFO, data structure. 
• A Consumer Process must not read from an empty queue.
• A Producer Process must not write to a full queue.
 
To avoid the model from consuming unnecessary resources on the computing platform on which it will be run, your model must include a mechanism to stop its execution once a specified Timeout Value (in seconds) has been reached.
 
Run time behaviour of the model should be controlled through a set of command line arguments specifying the following parameters:
 
• Number of Producers (between 1 and 4)
• Number of Consumers (between 1 and 4)
• Maximum entries in the queue
• Timeout Value in seconds
 
The following default parameter values should be built into the model. These should be easily identifiable such that they can be configured  through a recompilation of the model code.
 
• Maximum wait period between Producer writes 5 seconds
• The maximum wait period between Consumer reads 5 seconds
• Maximum number of Producers: 4
• Maximum Number of Consumers 4
• Range of Random Number generated by Producer 99
 
Your model should display an appropriate level of information while executing, and a concise, readable summary of the modelrun itself. This must include the following information.
 
• Run time Command line parameters.
• Compiled model parameters
• Time  & date of the execution run
• Current user name & hostname
 
Comments & Code Structure
 
Please make sure you comment your code well – readability is a part of the assessment criteria. Comments make your code readable both to yourself and others. As noted, you should especially make it clear where compile-time options that control model behaviour are identified and consider the use of an appropriate code structure that provides modularity. A random number needs to be generated as data in the Producer process,and as a variable random wait in both the Producer and Consumer processes, one function will suffice.
 
Error Handling
 
We have emphasised the need to ensure the code handles error conditions, for example, those returned from system calls, well. What are you going to tell the user if a function or system call you use does not return the expected value?
 
Model Verbosity
 
Your model should output an appropriate level of information to the user as it is running so she can track progress. It up to you but a suggestion would be to log when a Producer writes to the queue including which producer it is and what it writes. This should, of course, include when a consumer writes to the standard output. Summarising the command line parameters for the model run is required.
 
Debugging
 
If your code is ‘working’ it should produce expected outcomes. How will you or a user debug a problem? You should includeadditional detailed instrumentation in your code to provide information about what is happening and a mechanism to turn this on or off – this could be a compile time option or a run time argument your choice. The default behavior however should be off - see the comment about Model Verbosity above.
 
Tidying up
Before you program exits it should exhibit good behaviour and clean up after itself. If for example it has created thread resources or synchronization objects it should cleanly terminated or relase these,  returning the associated memory resources to the operating system.
 
 
Assessment Criteria
 
Your coursework should be submitted no later than 5pm on Friday February 2nd (this is the last day of Semester 1). This assignment is worth 25% of the total module mark and is a must pass element.
 
You will submit a zipfile bundle to a blackboard assignment. This contains the following sections. You will be provided with the exact details of how to do this through assignment portal
 
a) A file containing your (appropriately commented) c code that implements the specified model functionality shouldinclude error handling and instrumentation.
b) A short report describing your code structure, key features of your model implementation and commentary on your two output run logs. {Max 200 words}
 
c) Two separate run logfiles that use different command line parameters demonstrating the functional execution of your code
 
Your submitted c-code will be
 
Run through MOSS to check the code for similarity. (https://theory.stanford.edu/~aiken/moss/)
Recompiled and re-run to check it works consistently with your log files and with a separate run using a different parameter set

Marking scheme – Must pass threshold for MSc module is 50%
 
C code and associated report 65%
Run logs and Code rerun 45%
 
 
Hints
 
This assignment will almost certainly require you to search to identify some specific programming constructs that you might not have used before or encountered in the practical lab exercises. It uses the foundational concepts of threads and synchronisation mechanisms that you have learned in those lab exercises, including mutex and semaphores, and the principles outlined in the lectures and notes.
 
The queue in your model should be safely and efficiently controlled using appropriate synchronization mechanisms. You could, for example, include mutexs and or semaphores.
 
Generating a logfile: You can pipe the output printf’d to the std_out terminal window into a file using the > operator in the shell. For example ./a.out > logfile will redirect the stdout into the file logfile
 
Generating user id and hostname can be accomplished using the getpwuid(getuid()) and gethostname() functions please put these in it identifies the runs as yours.
 
If (MY_PARAMETER) {
// do something
}
Is a simple way to insert conditional instrumentation code you only want to happen when you require the additional messages to be output.
 
Approach
 
You should consider approaching this assignment in a modular fashion. Break the problem down. write and test component functions as small independent chunks before integrating themtogether. For example, the random function mentioned earlier can be independently checked, as could, for example, the code to create a set of threads that would model independent consumers or producers or that which parses and displays the run time command line arguments.
 
It is entirely possible that there will be more error handling and optional debugging/ instrumentation lines of code and comments than there are functional lines of code
 
The number of lines of code you end up with obviously depends a little on style but a couple of fully commented – fully instrumented model implementations are in the range of 250-350 lines of code quite a few of these are things like #includes #defines etc
 
You will find examples of almost all of the building blocks need to complete this assignment in the practical class notes.
 
If you are unsure about any aspect of the assignment please use blackboard to ask a question
 如有需要,請加QQ:99515681 或WX:codehelp

掃一掃在手機打開當前頁
  • 上一篇:代做EEE6207、代寫 c/c++語言程序
  • 下一篇:代做Coding Project Test 編程設計
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業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在线免费观看
    亚洲激情电影在线| 8050国产精品久久久久久| 国产日本欧美视频| 久久精品国产精品| 日本电影一区二区三区| 欧美一级大胆视频| 麻豆av免费在线| 久久久久久人妻一区二区三区| 亚洲一区二区三区在线观看视频| 国产私拍一区| 久久国产精品电影| 国产一级二级三级精品| 国产精品久久久久99| 狠狠97人人婷婷五月| 国产精品情侣自拍| 国内精品**久久毛片app| 国产精品久久综合av爱欲tv| 欧美精品一区二区三区久久| 日韩少妇与小伙激情| 人妻av无码专区| 国产成人涩涩涩视频在线观看| 日本a级片电影一区二区| 国产v综合ⅴ日韩v欧美大片 | 久久久久久com| 97欧美精品一区二区三区| 中文字幕一区综合| 91免费国产视频| 日本一区精品| 久久久精品国产| 国产色综合一区二区三区| 一区二区免费电影| 久久一区免费| 日韩精品极品视频在线观看免费| 色噜噜狠狠色综合网图区| 欧美 日韩 国产在线观看| 久久久久久久久久久av| 欧美激情一区二区三区在线视频| 国产精品美女999| 国产色婷婷国产综合在线理论片a| 亚洲啪啪av| 在线码字幕一区| 成人动漫在线观看视频| 亚洲国产一区二区在线| 成人av中文| 午夜精品一区二区在线观看的| 91精品免费视频| 性一交一乱一伧国产女士spa | 国产精品久久久久91| 国产精品有限公司| 一区二区国产日产| 91精品久久久久久久久青青 | 日韩免费在线观看av| 国产成人精品一区二区三区| 欧美极品欧美精品欧美图片| 不卡av电影院| 97人人模人人爽人人少妇| 亚洲成人网上| 久久久久久久久91| 男女午夜激情视频| 中国丰满熟妇xxxx性| 91精品国产91久久久久| 欧美视频在线播放一区| 九色精品美女在线| 国产传媒一区二区| 蜜桃久久精品乱码一区二区| 影音先锋欧美在线| 久久国产午夜精品理论片最新版本| 免费在线国产精品| 日韩欧美亚洲天堂| 波多野结衣精品久久| 日韩av综合在线观看| 久久精品视频网站| 久久成人精品一区二区三区| 欧洲亚洲一区二区| 亚洲欧洲精品一区二区| 欧美精品在线视频观看| 国产精品视频男人的天堂| 久久偷看各类wc女厕嘘嘘偷窃| 国产精品永久在线| 国产一区喷水| 免费在线精品视频| 欧美日韩亚洲一| 欧美一区深夜视频| 日本一区二区三区四区五区六区 | 精品国产一区二区三区久久狼黑人 | 国产精品视频精品| 超碰97网站| 欧美牲交a欧美牲交aⅴ免费真| 综合色婷婷一区二区亚洲欧美国产| 久久精品国产精品青草色艺| 国产美女主播在线| 欧美日韩系列| 亚洲人成人77777线观看| 国产精品毛片va一区二区三区| 久久免费视频网| 成人免费福利视频| 激情五月五月婷婷| 日产精品久久久一区二区福利| 欧美精品在线极品| 久久久国产精品x99av| 久久久视频精品| 国产精品制服诱惑| 国内精品**久久毛片app| 人妻精品无码一区二区三区| 日韩av电影中文字幕| 亚洲国产精品视频一区| 久久久久国产精品免费| 国产精品第8页| 九九九热999| 国产精品18毛片一区二区| 高清一区二区三区日本久| 黄色一级视频在线播放| 欧美在线视频观看免费网站| 日本一区二区在线| 欧美一区二区视频97| 在线观看成人av| 黄色一级片av| 亚洲爆乳无码专区| 日韩精品久久久| 狠狠干一区二区| 国产精品稀缺呦系列在线| 99视频在线免费| 久久久久se| 国产成人综合一区二区三区| 色偷偷av一区二区三区| 国产精品久久久av久久久| 精品国产免费人成电影在线观...| 在线国产精品网| 日韩av电影中文字幕| 黄色一级大片在线观看| 成人a免费视频| 久久精品人人做人人爽电影| 国产精品裸体一区二区三区| 欧美日韩福利在线观看| 少妇性饥渴无码a区免费| 欧美日韩另类综合| 国产精品影院在线观看| 国产精品99久久免费黑人人妻 | 亚洲熟妇av一区二区三区| 性高湖久久久久久久久aaaaa| 欧美综合国产精品久久丁香| 国产综合精品一区二区三区| 99视频网站| 国产成人欧美在线观看| 欧美精品福利视频| 日本人妻伦在线中文字幕| 蜜臀精品一区二区| 97精品国产97久久久久久春色 | 久久99国产精品一区| 久久久精品国产网站| 欧美激情一区二区三区高清视频| 无码人妻精品一区二区三区66| 欧美亚洲另类视频| 国产乱子夫妻xx黑人xyx真爽| 国产妇女馒头高清泬20p多| 国产精品极品美女粉嫩高清在线| 岛国视频一区免费观看| 国产综合在线看| 久久国产精品99久久久久久丝袜| 久久在精品线影院精品国产| 日本精品一区二区三区不卡无字幕 | 日韩中文字幕在线视频| 中文字幕久精品免| 欧美一区三区二区在线观看| 国产精品一区二区三区免费观看 | 91精品国产高清久久久久久| 国产精品美女诱惑| 亚洲国产日韩欧美| 精品视频免费观看| 91国自产精品中文字幕亚洲| 国产精品久久久久国产a级| 日韩欧美一区二区在线观看| 国产精品亚洲a| 国产精品美乳在线观看| 日本福利视频网站| 91美女片黄在线观| 久久亚洲影音av资源网| 欧美中日韩在线| 91精品国产一区二区三区动漫| 久久成人av网站| 欧美精品久久96人妻无码| 国产成人综合久久| 亚洲一区亚洲二区亚洲三区| 国产日韩欧美成人| 久久av二区| 中文字幕中文字幕在线中一区高清| 欧美日韩一区综合| 久激情内射婷内射蜜桃| 午夜精品理论片| 阿v天堂2017| 欧美激情中文网| 国产一二三四区在线观看| 国产精品久久久久免费| 欧美精品久久久久久久自慰| 日韩在线视频中文字幕| 日本少妇高潮喷水视频| 久久人人看视频| 亚洲**2019国产| 久久久亚洲影院你懂的| 欧美激情视频给我|