91精品国产91久久久久久_国产精品二区一区二区aⅴ污介绍_一本久久a久久精品vr综合_亚洲视频一区二区三区

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

代做EEE6207、代寫 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è)
  • 上一篇:代寫CSCI-561 Artificial Intelligence 程序
  • 下一篇:代做EEE6207、代寫 c/c++語(yǔ)言程序
  • 無(wú)相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評(píng)軟件
    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)化
    出評(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)線
  • 短信驗(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號(hào)-3 公安備 42010502001045

    91精品国产91久久久久久_国产精品二区一区二区aⅴ污介绍_一本久久a久久精品vr综合_亚洲视频一区二区三区
    中文字幕不卡在线观看| 午夜精品久久久久久久蜜桃app| 精品视频资源站| 一本色道**综合亚洲精品蜜桃冫| 国产精品一区二区欧美| 午夜在线视频观看日韩17c| 在线综合视频| 美女诱惑黄网站一区| 久久青青草综合| 在线观看亚洲专区| 欧美精品高清视频| 欧美va亚洲va香蕉在线| 日韩一区二区在线观看视频 | 国外精品视频| 亚洲人成在线影院| 亚洲欧美日韩视频二区| 在线免费观看一区| 欧美一级一区二区| 久久久久国产免费免费| 国产精品久久久久久福利一牛影视| 国产精品久久三区| 亚洲一区二区三区在线播放| 奇米影视一区二区三区| 国产麻豆精品95视频| 99v久久综合狠狠综合久久| 国产一区在线免费观看| 鲁大师影院一区二区三区| 欧美喷水一区二区| 久久尤物电影视频在线观看| 亚洲欧美日韩在线不卡| 免费成人av在线播放| 成人禁用看黄a在线| 在线观看福利一区| 欧洲另类一二三四区| 日韩欧美在线观看一区二区三区| 日本一区二区综合亚洲| 天天综合日日夜夜精品| 成人视屏免费看| 亚洲免费精品| 欧美日韩高清不卡| 国产精品久久久久久户外露出| 午夜伊人狠狠久久| www.一区二区| 午夜亚洲福利在线老司机| 日韩一区二区视频| 亚洲欧洲综合另类| 免费视频一区| 精品99一区二区三区| 亚洲观看高清完整版在线观看| 国产美女娇喘av呻吟久久| 亚洲午夜在线观看| 欧美日韩视频在线第一区| 国产精品久久久久久妇女6080| 免费高清在线一区| 精品9999| 精品国产乱码91久久久久久网站| 亚洲一级片在线观看| 99久久国产综合色|国产精品| 翔田千里一区二区| 2020日本不卡一区二区视频| 青草国产精品久久久久久| 亚洲福利电影| 精品国一区二区三区| 日韩成人精品在线| 国内外成人免费视频| 日韩视频一区二区三区在线播放| 亚洲国产精品影院| 欧美jizzhd精品欧美巨大免费| 欧美人狂配大交3d怪物一区| 亚洲自拍与偷拍| 欧美少妇一区| 精品久久国产97色综合| 久久国产夜色精品鲁鲁99| 亚洲开发第一视频在线播放| 久久―日本道色综合久久| 加勒比av一区二区| 美女成人午夜| 一区二区三区中文字幕| 91免费在线视频观看| 欧美一区二区播放| 狠狠色综合播放一区二区| 一本到一区二区三区| 一区二区三区小说| 精品不卡视频| 欧美国产成人精品| 欧美一区网站| 久久精品免费在线观看| 国产精品18久久久久久久久| 欧美性受极品xxxx喷水| 日韩精品五月天| 性色一区二区三区| 一区二区三区在线视频免费观看| 国产精品hd| 国产精品卡一卡二卡三| 亚洲小说区图片区| 中文欧美字幕免费| 国精品一区二区| 中文字幕一区二区5566日韩| 欧美国产三区| 国产精品久久久久久久久果冻传媒| 色综合久久中文字幕| 久久综合久久鬼色中文字| aa级大片欧美| 国产欧美久久久精品影院| 午夜精品短视频| 欧美国产精品久久| 亚洲黄色影片| 樱花影视一区二区| 久久动漫亚洲| 久久精品国产久精国产爱| 欧美日韩一区二区三区四区五区| 精品一区二区免费看| 7777精品伊人久久久大香线蕉 | 99久久久久免费精品国产| 久久精品夜夜夜夜久久| 午夜精品久久| 一区二区在线免费| 米奇777在线欧美播放| 久久精品国产亚洲高清剧情介绍 | 欧美大片拔萝卜| 91麻豆免费看| 中文字幕亚洲在| 久久精品中文字幕一区二区三区| 亚洲国产精品久久久男人的天堂| 欧美在线视频全部完| 国产成人在线视频网站| 久久久久久久久一| 国产日韩亚洲欧美精品| 日本不卡在线视频| 精品国免费一区二区三区| 国产一区高清视频| 日韩二区三区四区| 日韩精品中午字幕| 亚洲午夜在线观看| 热久久一区二区| 国产欧美一区二区精品婷婷 | 51久久夜色精品国产麻豆| 91丨九色丨蝌蚪丨老版| 亚洲影视资源网| 在线电影一区二区三区| 欧美日韩影院| 久久精品免费观看| 日本一区二区三区四区在线视频 | 日韩一级免费观看| 亚洲巨乳在线| 国产成人精品三级麻豆| 中文字幕欧美一区| 欧美日本在线播放| 极品尤物久久久av免费看| 蜜桃视频免费观看一区| 久久久精品免费网站| 久久亚洲色图| 欧美日韩国产色综合一二三四| 日韩精品视频网| 中文字幕av资源一区| 欧美性大战久久| 亚洲天堂黄色| 成人午夜视频在线| 午夜精品久久久久久久久久| 国产亚洲精品7777| 欧美在线观看视频一区二区| 亚洲小说欧美另类社区| 国产成人超碰人人澡人人澡| 亚洲成a人片在线观看中文| 国产日产精品1区| 欧美日韩一区二区三区不卡| 在线观看视频免费一区二区三区| 国产很黄免费观看久久| 五月综合激情婷婷六月色窝| 久久久久久日产精品| 欧美日韩一区二区在线观看| 国产亚洲福利| 欧美日韩国产不卡在线看| 国产精品一区一区三区| 亚洲成人免费在线| 日韩美女久久久| 久久亚洲欧美国产精品乐播| 欧美日韩高清不卡| 色999日韩国产欧美一区二区| 亚洲高清电影| 国产精品mv在线观看| www..com久久爱| 国产一区二区三区| 久久99精品久久久| 亚洲国产aⅴ成人精品无吗| ...av二区三区久久精品| 久久精品一区四区| 欧美一二区视频| 91精品国产综合久久香蕉的特点| 久久综合伊人77777麻豆| 国产视频一区三区| 亚洲午夜精品久久久久久app| 午夜性色一区二区三区免费视频| 国产999精品久久| 丁香六月久久综合狠狠色| 国产一区二区三区电影在线观看| 麻豆精品视频在线观看| 男女男精品视频| 日韩电影在线观看电影| 日韩av一区二区三区四区|