99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

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

代做EEE6207、代寫(xiě) c/c++語(yǔ)言程序

時(shí)間:2024-01-28  來(lái)源:合肥網(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ī)打開(kāi)當(dāng)前頁(yè)
  • 上一篇:代寫(xiě)CSCI-561 Artificial Intelligence 程序
  • 下一篇:代做EEE6207、代寫(xiě) c/c++語(yǔ)言程序
  • 無(wú)相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    出評(píng) 開(kāi)團(tuán)工具
    出評(píng) 開(kāi)團(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ī)場(chǎng)巴士4號(hào)線
    合肥機(jī)場(chǎng)巴士4號(hào)線
    合肥機(jī)場(chǎng)巴士3號(hào)線
    合肥機(jī)場(chǎng)巴士3號(hào)線
    合肥機(jī)場(chǎng)巴士2號(hào)線
    合肥機(jī)場(chǎng)巴士2號(hào)線
    合肥機(jī)場(chǎng)巴士1號(hào)線
    合肥機(jī)場(chǎng)巴士1號(hào)線
  • 短信驗(yàn)證碼 豆包 幣安下載 AI生圖 目錄網(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

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          欧美午夜免费影院| 亚洲国产一区二区三区在线播| 亚洲欧洲视频在线| 欧美在线观看你懂的| 欧美高清一区二区| 亚洲国产色一区| 麻豆精品精品国产自在97香蕉| 国产女人水真多18毛片18精品视频| 日韩视频在线观看免费| 欧美精品18+| 亚洲精品美女在线观看| 欧美成人午夜激情在线| 伊人精品在线| 久久免费视频网| 精品成人久久| 另类激情亚洲| 在线观看欧美一区| 蜜臀久久久99精品久久久久久| 黄色在线一区| 久久一区欧美| 亚洲国产天堂久久国产91| 欧美成人国产一区二区| 亚洲激情视频在线播放| 欧美激情亚洲另类| 在线视频你懂得一区二区三区| 欧美日本韩国一区| 亚洲视频在线观看网站| 欧美性理论片在线观看片免费| 一区二区三区国产精华| 国产精品美女久久久浪潮软件| 亚洲欧美在线磁力| 国语自产精品视频在线看抢先版结局| 久久美女性网| 亚洲九九精品| 国产精品乱码久久久久久| 午夜精品久久久久久久99热浪潮| 国产伦精品一区二区三区免费迷 | 欧美视频免费在线| 亚洲欧美日韩一区在线| 国内精品久久久久久| 老司机午夜精品视频| 一区二区三区黄色| 国产精品日韩久久久| 久久久夜夜夜| 一区二区三区四区五区精品| 国产精品免费小视频| 久久伊人精品天天| 一本大道久久a久久综合婷婷| 国产精品wwwwww| 久久亚洲精品网站| 在线性视频日韩欧美| 国内一区二区三区在线视频| 欧美日本高清| 久久久99精品免费观看不卡| 亚洲精品一区中文| 国产一区二区三区四区hd| 欧美黄污视频| 久久国产视频网| 亚洲精品日韩精品| 国产亚洲午夜| 欧美理论视频| 久久综合狠狠综合久久综合88| 一本久道久久综合婷婷鲸鱼| 国产在线日韩| 国产精品黄页免费高清在线观看| 葵司免费一区二区三区四区五区| 亚洲素人一区二区| 亚洲国产精品高清久久久| 国产精品永久免费在线| 欧美精品在线观看一区二区| 久久激情视频久久| 亚洲自拍都市欧美小说| 亚洲国产欧美一区二区三区丁香婷| 国产精品日本精品| 欧美日韩国产综合一区二区| 久热精品视频在线免费观看| 欧美一区二区三区视频免费播放| 一本色道久久综合亚洲精品高清| 亚洲国产综合91精品麻豆| 国产日韩欧美亚洲| 国产精品久久9| 欧美日韩一区二区视频在线| 欧美成人在线网站| 久久综合色综合88| 久久久久久成人| 欧美一区二区视频观看视频| 亚洲婷婷综合久久一本伊一区| 亚洲麻豆视频| 亚洲啪啪91| 最新69国产成人精品视频免费| 在线播放日韩| 精品999成人| 一区在线影院| 1000部精品久久久久久久久| 国产一区观看| 国产一区二区三区四区老人| 国产午夜精品全部视频在线播放| 欧美精品v国产精品v日韩精品| 免费成人在线视频网站| 毛片一区二区三区| 久久综合九色九九| 欧美va亚洲va香蕉在线| 欧美激情免费在线| 欧美日韩国产不卡在线看| 欧美精选午夜久久久乱码6080| 欧美精品三级日韩久久| 欧美理论电影网| 国产精品av免费在线观看| 欧美先锋影音| 国产精品系列在线| 国内精品久久久久久久影视麻豆| 激情欧美一区二区| 亚洲国产日韩欧美一区二区三区| 91久久亚洲| 亚洲视频久久| 欧美在线国产精品| 美女诱惑黄网站一区| 欧美久久久久久久久久| 欧美特黄一级| 国产欧美一区二区视频| 在线观看亚洲精品视频| 日韩视频在线一区二区三区| 亚洲私人影院| 久久国产精品网站| 欧美精品网站| 国产乱码精品1区2区3区| 伊人久久男人天堂| 99热在这里有精品免费| 亚洲欧美影院| 欧美国产免费| 国产欧美日韩在线观看| 亚洲国产导航| 亚洲影视在线播放| 鲁鲁狠狠狠7777一区二区| 欧美日韩三级一区二区| 国产亚洲欧美另类一区二区三区| 亚洲国产精品专区久久| 亚洲在线网站| 欧美精品在线视频观看| 国产亚洲精品成人av久久ww| 亚洲欧洲视频| 欧美一区二区私人影院日本 | 久热精品视频在线观看| 欧美色图天堂网| 国内精品一区二区| 在线亚洲高清视频| 免费成人美女女| 国产精品日韩精品| 日韩视频在线免费观看| 久久久久国产精品厨房| 国产精品无码永久免费888| 亚洲三级影院| 久久久夜精品| 国产欧美日韩一区二区三区在线| 日韩视频免费在线| 老色鬼精品视频在线观看播放| 国产精品老牛| 一区二区免费在线视频| 麻豆九一精品爱看视频在线观看免费| 国产精品国产三级国产专区53| 亚洲三级免费观看| 久久婷婷激情| 国产一区二区精品| 亚洲影院色无极综合| 欧美极品影院| 亚洲精品久久久久| 欧美xxx成人| 伊人精品视频| 久久国产精品亚洲77777| 国产欧美日韩一区二区三区在线观看 | 欧美理论视频| 亚洲人成网在线播放| 裸体素人女欧美日韩| 国产真实乱偷精品视频免| 欧美亚洲免费高清在线观看| 国产精品大全| 一区二区三区视频在线看| 欧美精品色一区二区三区| 亚洲精品国产精品国自产在线| 久久午夜电影| 在线免费日韩片| 欧美成人一区二区| 亚洲人午夜精品免费| 欧美精品久久久久久久免费观看| 亚洲第一精品电影| 毛片基地黄久久久久久天堂| 在线日本高清免费不卡| 欧美日韩国产综合视频在线| 亚洲国产精品一区二区www| 欧美va亚洲va香蕉在线| 亚洲黄网站黄| 欧美精品1区| 亚洲免费精品| 国产精品久久久久aaaa| 亚洲欧美精品在线| 国产一区美女| 麻豆精品一区二区av白丝在线| 亚洲黄一区二区| 欧美日韩综合另类| 午夜精品国产精品大乳美女|