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

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

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

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 寵物飼養 十大衛浴品牌排行 suno 豆包網頁版入口 wps 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    欧美中在线观看| 亚洲国产日韩美| 欧美激情精品久久久久久久变态| 日本免费高清一区二区| 成人精品一区二区三区电影免费| 国产精品天天av精麻传媒| 日本欧美中文字幕| 成人免费网视频| 久久91精品国产| 国产中文字幕二区| 国产精品激情av电影在线观看| 日韩精品一区二区三区四区五区| 国产经典一区二区三区| 亚洲精品女av网站| 91高清免费在线观看| 亚洲自拍欧美色图| 成人免费淫片aa视频免费| 欧美日本精品在线| 官网99热精品| 人妻无码一区二区三区四区| 久久精品一区二区三区不卡免费视频| 亚洲综合小说区| 成人羞羞国产免费| 亚洲色婷婷久久精品av蜜桃| 成人中文字幕在线观看| 中文字幕中文字幕在线中一区高清 | 一道本在线观看视频| 国产一区喷水| 精品国产一区二区三区麻豆免费观看完整版 | 国产欧美韩国高清| 久久久久久91| 99国产视频| 亚洲 高清 成人 动漫| 久久久久99精品成人片| 久久99精品国产99久久| 日韩国产小视频| 精品久久久av| 国产中文字幕日韩| 久久综合久久美利坚合众国| 国产一区二区在线免费视频| 久久久久成人网| 久久久亚洲国产| 欧美日韩黄色一级片| 精品国产一区二区三区久久久久久| 国产伦精品一区二区三区免费视频| 一级特黄录像免费播放全99| 国产高清精品软男同| 欧美日韩国产精品一卡| 美女av一区二区| 久久亚洲精品欧美| 免费精品视频一区二区三区| 亚洲综合视频一区| 色妞一区二区三区| 蜜桃传媒视频第一区入口在线看| 久久久久久国产精品| 久久五月天婷婷| 毛葺葺老太做受视频| 天堂av在线中文| 国产精品男女猛烈高潮激情| 99亚洲精品视频| 欧美日韩午夜爽爽| 欧美精品成人91久久久久久久| 国产传媒欧美日韩| 麻豆av一区二区三区| 大波视频国产精品久久| 国产精品第七影院| 国产成人精品日本亚洲11| 国产日韩欧美一区二区| 日韩a∨精品日韩在线观看| 久久久av电影| 91精品久久久久| 国内免费精品永久在线视频| 亚洲一区三区电影在线观看| 精品国产一区二区三区久久久狼 | 欧美成在线视频| 91精品国产高清自在线| 欧美高清视频一区二区三区在线观看| 色综合久综合久久综合久鬼88 | 欧美成人免费在线观看| 久久涩涩网站| 国产一级不卡毛片| 日韩精品久久久毛片一区二区| 欧美伦理91i| 久久久久久久中文| 99国精产品一二二线| 国产综合香蕉五月婷在线| 欧美一级片久久久久久久| 国产精品久久久久久久app| 国产成人在线免费看| 福利视频久久| 国产一区二区三区乱码| 欧美日韩国产不卡在线看| 中文字幕一区二区三区四区五区| 国产精品丝袜久久久久久高清 | 亚洲一区二区三区加勒比| 国产精品精品久久久| 久艹视频在线免费观看| 99国精产品一二二线| 国产免费一区二区三区在线观看| 欧美亚洲一级二级| 日本一区不卡| 天天综合五月天| 亚洲精品无人区| 亚洲午夜精品一区二区三区| 国产精品久久久久久久app| www.日韩.com| 久久久久久久久国产| 久久久99精品视频| 久在线观看视频| 久久这里只有精品8| 97欧洲一区二区精品免费| 国产精品亚洲自拍| 国产免费一区二区视频| 精品午夜一区二区三区| 欧美不卡三区| 韩国一区二区三区美女美女秀| 欧美中文字幕在线播放| 欧美自拍资源在线| 欧美日韩不卡在线视频| 日韩精品一区二区三区丰满| 日本十八禁视频无遮挡| 日本在线成人一区二区| 日本精品一区二区三区四区| 日本国产在线播放| 青青在线视频免费| 激情视频一区二区| 免费黄色福利视频| 国产人妻互换一区二区| 国产免费内射又粗又爽密桃视频| 国产中文字幕乱人伦在线观看| 国产伊人精品在线| 国产精品一色哟哟| www.日本在线视频| 国产脚交av在线一区二区| 91精品国产91久久久久福利| 97久久伊人激情网| 久久这里只有精品23| 色妞欧美日韩在线| 久久亚洲一区二区三区四区五区高| 欧美成人精品在线播放| 一区不卡视频| 日本高清久久天堂| 日本国产欧美一区二区三区| 欧美亚洲另类在线一区二区三区| 欧美成人精品免费| 国产伦理久久久| 91免费的视频在线播放| 国产国语videosex另类| 精品国产区一区二区三区在线观看| 国产精品久久久久久久久电影网 | 九色在线视频观看| 亚洲最大成人在线| 亚洲国产欧美一区二区三区不卡 | 国产一区高清视频| 草b视频在线观看| 国产盗摄视频在线观看| 国产精品免费在线| 在线观看污视频| 日韩一级免费在线观看| 日韩亚洲欧美一区二区| 黄色a级片免费| 成人精品视频在线播放| 国产成人精品久久二区二区 | 99精品欧美一区二区三区| 久久99国产精品| 国产精品偷伦视频免费观看国产| 不卡av电影在线观看| 亚洲欧洲免费无码| 亚洲一区二区三区香蕉| 亚洲视频在线二区| 日韩人妻无码精品久久久不卡| 日本丰满少妇黄大片在线观看| 在线视频福利一区| 国产在线98福利播放视频| 成人国产亚洲精品a区天堂华泰| 国产不卡一区二区三区在线观看| 国产精品沙发午睡系列| 亚洲资源视频| 欧美视频第三页| 99精品一区二区三区的区别| 伊人久久婷婷色综合98网| 中文精品视频一区二区在线观看| 日韩欧美在线播放视频| 久久精品在线免费视频| 日韩欧美国产综合在线| av免费观看国产| 热99精品里视频精品| 久久精品99久久久久久久久 | 精品视频无码一区二区三区| 亚洲永久一区二区三区在线| 日韩亚洲国产中文字幕| 国产伦精品一区二区三区精品视频| 欧美激情精品久久久久久久变态| 69久久夜色精品国产69乱青草| 欧美一区激情视频在线观看| 欧美日本黄视频| 久久久久久久999精品视频| 人妻夜夜添夜夜无码av| 精品久久蜜桃| 久久精品视频va|