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

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

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

時(shí)間:2024-01-28  來源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)



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
 如有需要,請(qǐng)加QQ:99515681 或WX:codehelp

掃一掃在手機(jī)打開當(dāng)前頁
  • 上一篇:代做EEE6207、代寫 c/c++語言程序
  • 下一篇:代做Coding Project Test 編程設(shè)計(jì)
  • 無相關(guān)信息
    合肥生活資訊

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

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號(hào)-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    日韩中文娱乐网| 国产精品久久久久久久久久| 麻豆一区二区在线观看| 国产最新免费视频| 精品国产乱码久久久久软件 | 91麻豆国产精品| 亚洲自拍中文字幕| 久久久久久a亚洲欧洲aⅴ| 日韩一二三区不卡在线视频| 国产精品视频免费在线| 国产日韩欧美在线看| 在线视频福利一区| 91成人综合网| 欧美在线欧美在线| 欧美情侣性视频| 国产精品18毛片一区二区| 日本不卡二区| 另类天堂视频在线观看| 成人国产精品久久久久久亚洲| 天天综合五月天| 久久视频国产精品免费视频在线| 国产精选久久久久久| 日韩在线视频在线| 国产精品日韩精品| 97人人模人人爽人人喊中文字| 日韩和欧美的一区二区| 国产日产欧美视频| 精品卡一卡二| 国产精品自产拍高潮在线观看| 亚洲中文字幕无码一区二区三区| 精品久久久久久一区二区里番 | 色乱码一区二区三在线看| 日韩aⅴ视频一区二区三区| 91精品91久久久中77777老牛| 中文字幕一区二区三区四区五区六区| 操人视频欧美| 亚洲人成77777| 国产精品av免费| 日韩精品免费一区| 日韩亚洲一区二区| 黄色www在线观看| 国产成人小视频在线观看| 欧美精品一区二区三区在线看午夜 | 国产一区二区自拍| 欧美成在线视频| 操人视频欧美| 日韩国产精品一区二区| 久久久精品一区二区| 国内揄拍国内精品少妇国语| 精品久久久久久中文字幕动漫 | 国产乱人伦精品一区二区三区| 亚洲精品视频一二三| 久久精品二区| 国内精品久久久久久| 久久久久九九九| 岛国一区二区三区高清视频| 国产精品久久久久久亚洲影视| 久久久综合av| 高清国产一区| 国产免费裸体视频| 欧美成aaa人片免费看| 成人国产精品久久久| 日本一区不卡| 另类天堂视频在线观看| 久久久噜噜噜久久中文字免| 久久久久久一区二区三区| 黄色小网站91| 亚洲精品偷拍视频| 国产精品久久久久久久久久三级 | 国产福利片一区二区| 国产日韩欧美二区| 欧美日韩一区在线观看视频| 日韩av高清在线看片| 亚洲国产精品久久久久爰色欲| 国产精品国语对白| 国产成人久久777777| 久久全球大尺度高清视频| www.日日操| 国产一区二区三区在线免费| 欧美久久久久久久久久久久久久| 痴汉一区二区三区| 亚洲综合精品伊人久久| 欧美xxxx做受欧美.88| 国产精品人人妻人人爽人人牛| 九九热只有这里有精品| 久久久女人电视剧免费播放下载| 91麻豆国产语对白在线观看| 99视频国产精品免费观看| 国产精品亚发布| 国产欧美精品久久久| 国产淫片av片久久久久久| 免费亚洲一区二区| 国产综合福利在线| 国产一区二区三区在线免费| 国产亚洲一区二区三区在线播放| 蜜桃av噜噜一区二区三区| 国模杨依粉嫩蝴蝶150p| 国模精品娜娜一二三区| 精品日产一区2区三区黄免费 | 在线观看免费91| 日韩在线观看你懂的| 99久久久精品视频| 狠狠色伊人亚洲综合网站色| 色乱码一区二区三在线看| 中文字幕在线乱| 精品不卡一区二区三区| 视频一区视频二区国产精品| av中文字幕av| 国产日韩欧美另类| 国内自拍在线观看| 欧美在线视频观看免费网站| 欧美一区二区三区免费观看| 欧美激情xxxx性bbbb| 国产精品久久久久久av下载红粉| 久久久www成人免费精品| 国产freexxxx性播放麻豆| 91成人精品网站| 131美女爱做视频| 97色在线播放视频| 91久热免费在线视频| 成人国产亚洲精品a区天堂华泰| 男人天堂新网址| 日韩欧美激情一区二区| 日本人成精品视频在线| 亚洲mm色国产网站| 亚洲欧美国产一区二区| 中国丰满熟妇xxxx性| 欧美激情xxxx性bbbb| 亚洲a级在线观看| 国产精品福利视频| 国产精品久久久久久亚洲影视| 久久久国产影院| 日韩免费在线播放| 亚洲色图都市激情| 日本不卡高清视频一区| 精品视频免费观看| 国产精品一区二区三区久久| 69久久夜色精品国产69乱青草| www.亚洲一区| 久久久久久12| 日本一区免费看| 国产一区红桃视频| 国产福利成人在线| 国产精品国模在线| 亚洲国产欧美日韩| 欧美深夜福利视频| 超碰成人在线免费观看| 色婷婷av一区二区三区久久| 久久99国产综合精品女同| 欧美一级片中文字幕| 国产专区一区二区| 91精品视频免费| 国产精品果冻传媒潘| 日本一区二区三区四区视频| 国产日韩在线看| 色偷偷88888欧美精品久久久| 欧美激情视频给我| 欧美日韩精品免费观看视一区二区| 成人免费网视频| 国产精品欧美日韩| 日韩成人手机在线| 成人精品久久久| 国产精品露脸av在线| 三级三级久久三级久久18| 国产一区二区久久久| 日韩视频中文字幕| 亚洲字幕一区二区| 国产主播欧美精品| 色噜噜国产精品视频一区二区| 中文字幕一区二区三区四区五区| 免费一级特黄毛片| 久久久久免费网| 亚洲成人第一| www亚洲国产| 久久精品国产欧美亚洲人人爽| 国产精品福利小视频| 天堂а√在线中文在线| 麻豆中文字幕在线观看| 久久久中精品2020中文| 激情视频综合网| 国产精自产拍久久久久久| 国产精品无码人妻一区二区在线 | 国产精品高潮呻吟视频| 欧美在线国产精品| 久久久7777| 亚洲高清视频一区| 国产九色porny| 精品国产一区二区三区麻豆免费观看完整版 | 国产中文字幕亚洲| 国产成人无码a区在线观看视频| 色综合久久av| 91av在线不卡| 亚洲精品蜜桃久久久久久| 成人免费在线小视频| 欧美激情亚洲一区| 国产亚洲欧美另类一区二区三区| 国产精品日韩电影| 男女视频网站在线观看| 日韩视频精品在线| 人妻有码中文字幕|