加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

合肥生活安徽新聞合肥交通合肥房產(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
 如有需要,請加QQ:99515681 或WX:codehelp

掃一掃在手機(jī)打開當(dāng)前頁
  • 上一篇:代寫CSCI-561 Artificial Intelligence 程序
  • 下一篇:代做EEE6207、代寫 c/c++語言程序
  • 無相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)/客戶要求/設(shè)計(jì)優(yōu)化
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    出評 開團(tuán)工具
    出評 開團(tuán)工具
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    海信羅馬假日洗衣機(jī)亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
    海信羅馬假日洗衣機(jī)亮相AWE 復(fù)古美學(xué)與現(xiàn)代
    合肥機(jī)場巴士4號線
    合肥機(jī)場巴士4號線
    合肥機(jī)場巴士3號線
    合肥機(jī)場巴士3號線
  • 短信驗(yàn)證碼 目錄網(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號-3 公安備 42010502001045

    人人香蕉久久| 黄色亚洲在线| 欧美美女视频| 麻豆精品蜜桃| 日韩电影免费一区| 国产亚洲福利| 国内精品亚洲| 亚洲婷婷在线| 国产精品伊人| 久久精品欧美一区| 三上悠亚国产精品一区二区三区| 久久精品国产色蜜蜜麻豆| 中文字幕视频精品一区二区三区| 久久亚洲图片| 欧美一区一区| 中文字幕中文字幕精品| 亚洲日韩中文字幕一区| 亚洲欧美日韩高清在线| 亚洲视频在线免费| 69堂免费精品视频在线播放| 久久av在线| 啪啪亚洲精品| 另类专区亚洲| 日韩精品视频中文字幕| 色在线视频观看| 久久精品凹凸全集| 免费亚洲视频| 最新国产拍偷乱拍精品| 成人三级视频| aaa国产精品| 日韩欧乱色一区二区三区在线| 久久最新视频| 亚洲一区成人| 99香蕉国产精品偷在线观看 | 99国产精品一区二区| 日韩精品视频一区二区三区| 国产欧美日韩在线一区二区| 亚洲影视一区二区三区| 亚洲精品麻豆| 黄色另类av| 天天射综合网视频| 激情欧美丁香| 亚洲私人影院| 国产99亚洲| www.久久久久爱免| 日本视频一区二区| 国产激情在线播放| 美女福利一区| 加勒比色老久久爱综合网| 精品国产精品国产偷麻豆| 51亚洲精品| 精品黄色一级片| 成人免费电影网址| 久久精品国产www456c0m| 私拍精品福利视频在线一区| 久久久久久久久国产一区| 理论片一区二区在线| 99国产**精品****| 亚洲精品2区| 香蕉久久夜色精品| 免费观看在线色综合| 久久黄色影视| 999国产精品视频| 国产字幕视频一区二区| 91国语精品自产拍| 免播放器亚洲| 日韩精品1区| 日韩美女在线| 中文视频一区| 日韩精品一区二区三区免费视频| 亚洲精品一二三**| 亚洲午夜在线| 老鸭窝亚洲一区二区三区| 欧美r级电影| 国模吧视频一区| 亚洲美女少妇无套啪啪呻吟| 久久一二三区| 三上悠亚一区二区| 国内精品嫩模av私拍在线观看| 国产中文字幕一区二区三区| 日韩**一区毛片| 农村少妇一区二区三区四区五区| 国产在线不卡| 久久久久久久欧美精品| 99欧美精品| 成人片免费看| 亚洲国产国产亚洲一二三| 综合五月婷婷| 黄色成人美女网站| 成人爽a毛片| 一区三区在线欧| 蜜桃视频在线一区| 国产日韩欧美一区在线 | 日韩精品色哟哟| 久久99视频| 欧洲美女日日| 日韩视频在线观看| 欧美精品观看| 久久久国产精品一区二区中文| 亚洲欧美偷拍自拍| 四虎4545www国产精品| 国产亚洲观看| 色天天色综合| 超碰一区二区| 最新国产精品| 在线日韩一区| 日韩电影一区| 亚洲动漫精品| 樱桃成人精品视频在线播放| 日韩高清欧美| 日韩激情在线观看| 亚洲激情成人| 日韩一区二区三区四区五区| 日韩电影一区二区三区| 一本色道久久综合亚洲精品高清 | 日韩福利电影在线| 亚洲激情av| 日日骚欧美日韩| 九色丨蝌蚪丨成人| 日本黄色免费在线| 国产精品成人3p一区二区三区| 91精品国偷自产在线电影| 亚洲永久av| 日日狠狠久久偷偷综合色| 黄色一区二区三区四区| 国产欧美在线| 91精品亚洲| 亚洲精品伦理| 国产无遮挡裸体免费久久| 欧美激情欧美| 精品国产亚洲一区二区在线观看| 国产婷婷精品| 91精品福利观看| 亚洲欧洲日本一区二区三区| 日精品一区二区| 国产91久久精品一区二区| 国产福利一区二区三区在线播放| www.神马久久| 亚洲精品在线影院| av综合网址| 日韩高清成人| 欧美激情久久久久久久久久久| 国产精品久久久久无码av| 久久99久久人婷婷精品综合| 免费在线成人网| 日韩aaa久久蜜桃av| 欧美黄色录像片| 一区二区中文字幕在线观看| av在线中出| 999国产精品一区| 91看片一区| 久久高清精品| 日本一区中文字幕 | 久久精品论坛| 国产麻豆一区| 天天揉久久久久亚洲精品| 一区二区免费不卡在线| 很黄很黄激情成人| 国产区精品区| 成人三级高清视频在线看| 99a精品视频在线观看| 日韩欧美精品一区| 999久久久精品国产| 国内揄拍国内精品久久| 西西裸体人体做爰大胆久久久| 亚洲人成网亚洲欧洲无码| 91偷拍一区二区三区精品| 国产一区福利| 国内精品美女在线观看| 久久国产精品毛片| 国产精品三p一区二区| 日韩国产一二三区| 亚洲中字黄色| 嫩呦国产一区二区三区av| 久久国产免费看| 母乳一区在线观看| 大伊香蕉精品在线品播放| 国产精品久久777777毛茸茸| 久久国产成人| 成人h动漫精品一区二区器材| 欧美一区激情| 欧美gay男男猛男无套| 久久国产欧美| 国产一区二区电影在线观看| 91p九色成人| 亚洲女同同性videoxma| 成人午夜网址| 国语精品一区| 五月天国产在线| 亚洲女同中文字幕| 亚洲三区欧美一区国产二区| 麻豆免费看一区二区三区| 国产99在线| 婷婷综合伊人| 国产精品白丝一区二区三区| 中文字幕日韩一区二区不卡| 免费看男女www网站入口在线 | 99热这里只有精品首页| 日本特黄久久久高潮| www.精品|