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

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

代做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 編程設計
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    漫画在线观看av| 国产一区清纯| 日本欧美一区二区三区乱码| 香蕉视频成人在线观看| 日韩黄色免费网站| 日韩黄色三级在线观看| 久久亚洲二区| 国产99精品| 玖玖精品一区| 欧美日韩亚洲一区| 精品丝袜在线| 欧美残忍xxxx极端| 婷婷久久综合| 女同一区二区三区| 日韩超碰人人爽人人做人人添| 一区二区三区四区五区精品视频 | 91超碰国产精品| 黄视频免费在线看| 国内精品久久久久久久影视蜜臀 | 亚洲精品aⅴ| 日韩一区二区三免费高清在线观看| 老司机一区二区三区| 欧美美女视频| 国产麻豆久久| 日韩一级欧洲| 99久久激情| 成人在线亚洲| 五月亚洲婷婷| 亚洲婷婷丁香| 综合久久99| 国产日韩亚洲| 久久国内精品| 亚洲成人高清| 美女爽到呻吟久久久久| 婷婷国产精品| 青青久久精品| www.com.cn成人| 免费高清在线一区| 先锋影音国产一区| 一区久久精品| 777久久精品| 日韩欧美中文在线观看| 久久久久久色| 亚洲一区自拍| 亚洲欧美春色| 午夜在线视频一区二区区别| 一区二区亚洲精品| 国产精品a久久久久| 日本欧美韩国一区三区| 手机看片久久| av一区在线播放| 欧洲一区二区三区精品| 国模套图日韩精品一区二区| 成人激情诱惑| 色琪琪久久se色| 91一区二区| 色一区二区三区| 裤袜国产欧美精品一区| 中文av在线全新| 麻豆精品蜜桃| 国产乱码精品| 影音先锋久久精品| 亚洲毛片视频| 99精品国产九九国产精品| 欧美激情aⅴ一区二区三区| 91麻豆精品国产91久久久更新资源速度超快| 国产欧美日韩综合一区在线播放 | 亚洲成人精品综合在线| 久久精品国产99国产精品| 青草av.久久免费一区| 综合天天久久| 日韩影视在线观看| 成人婷婷网色偷偷亚洲男人的天堂| 久久久久一区| 亚洲欧洲日本mm| 美国毛片一区二区| 成人黄色在线| 一区二区中文| 日韩三级网址| 天堂成人娱乐在线视频免费播放网站| 欧美综合另类| 噜噜噜在线观看免费视频日韩| 国产精品蜜芽在线观看| 国产一区二区三区朝在线观看 | 久久国产小视频| 国产亚洲欧洲| 日本精品不卡| 中文无码久久精品| 国产+成+人+亚洲欧洲在线 | 欧美va亚洲va日韩∨a综合色| 99国产精品99久久久久久粉嫩| 国产精品99久久精品| 日韩免费大片| 亚洲女娇小黑人粗硬| 久久精品国产亚洲5555| 伊人影院久久| yy6080久久伦理一区二区| 成人在线视频国产| 国语产色综合| 亚洲欧美视频| 久久99国产精品二区高清软件| 国产精品久久久久久久久久久久久久久| 天海翼亚洲一区二区三区| 久久久夜精品| 国产精品久久久久久影院8一贰佰| 久久精品国产亚洲一区二区三区| 欧美人妖在线| 欧美日韩激情在线一区二区三区| 国产乱码午夜在线视频| 亚洲最新av| 国产中文一区| 亚洲综合av一区二区三区| 国产精品亚洲二区| 欧美老女人另类| 国产精品伦一区二区| 久久九九精品视频| 久久成人免费| 亚洲天天综合| 亚洲先锋成人| 国产成人福利夜色影视| 亚洲一二三区视频| 日韩成人精品一区二区| 亚洲国产精品一区| 蜜桃成人av| 欧美激情不卡| 久久久久.com| 美女福利一区二区三区| 精品视频一区二区三区| 久久不射2019中文字幕| 亚洲视频在线免费| 自拍视频亚洲| 老司机午夜精品99久久| 久久成人综合| 成人在线不卡| 久久美女性网| 久久精品国产久精国产| 久久精品影视| 日韩午夜视频在线| 久久久噜噜噜久久狠狠50岁| 免费v片在线观看| 亚洲高清在线一区| 日韩理论片av| 红杏一区二区三区| 欧美一级免费| 久久久蜜桃一区二区人| 国产91在线播放精品| 91精品国产自产拍在线观看蜜| 少妇精品视频一区二区免费看| 国产精品自在| 精品久久99| 欧美日韩激情在线一区二区三区| 久久国产欧美日韩精品| 91九色精品| 亚洲人成777| 免费国产亚洲视频| 91精品国产乱码久久久竹菊| 视频在线日韩| 久久精品影视| 久久中文字幕导航| 麻豆国产精品777777在线| 欧美喷水视频| 国产剧情在线观看一区| 日韩av一级片| 全球中文成人在线| 91精品久久久久久久久久不卡| 色噜噜成人av在线| 99国产精品视频免费观看一公开| 欧美韩国一区| 麻豆成全视频免费观看在线看| 99ri日韩精品视频| 欧美激情不卡| 午夜在线一区二区| 爱爱精品视频| 美女视频黄免费的久久| 狂野欧美性猛交xxxx巴西| 日韩综合一区二区三区| 国产一区高清| 久久福利一区| 国产精品主播在线观看| 一区二区三区福利| 视频一区二区不卡| 久久久夜精品| 欧美欧美黄在线二区| 欧美一区二区三区婷婷| 日韩视频一区| 精品国产aⅴ| 国产激情一区| 色天使综合视频| 中文国产一区| 美女主播精品视频一二三四| 中文字幕一区二区三区在线视频 | 成人中文视频| 国产在线不卡一区二区三区| 快播电影网址老女人久久| japanese国产精品| 日韩精品一区二区三区免费视频| 日韩和欧美一区二区| 日韩大片免费观看| 中文高清一区| 激情久久综合|