国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女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

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

    合肥圖文信息
    流體仿真外包多少錢_專業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怎么修改定
  • 短信驗證碼 豆包網頁版入口 破天一劍 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    欧美日韩国产不卡在线看| 热99在线视频| 日av在线播放中文不卡| 99国内精品久久久久久久软件| 国产精品日韩一区二区免费视频 | 色乱码一区二区三区熟女| 国产欧美精品在线| 国产精品久久久久久久app| 欧美日韩成人一区二区三区| 久久久久久久久久久91| 日本不卡一区| 国产精品1区2区在线观看| 亚洲a一级视频| 久久久视频免费观看| 欧美一区二区三区电影在线观看| 97人人模人人爽人人少妇 | 在线视频欧美一区| 成人久久18免费网站图片| 欧美激情xxxx性bbbb| 国产欧美日韩小视频| 精品国产成人av在线免| 国产欧美一区二区三区在线看| 久久成年人视频| 国产在线播放不卡| 精品国产一区二区三区麻豆小说| 国产一区国产精品| 精品久久久久亚洲| www.av一区视频| 亚洲天堂电影网| av免费精品一区二区三区| 亚洲一区二区三区加勒比| 91九色精品视频| 日韩三级在线播放| 国产精品免费看久久久香蕉 | 日本精品一区二区三区在线| 久久综合九色综合久99| 日本高清不卡三区| 国产精品手机在线| 国产欧美日韩中文字幕| 亚洲免费久久| 色噜噜狠狠色综合网图区| 激情综合网婷婷| 精品高清视频| 69久久夜色精品国产69乱青草| 日本婷婷久久久久久久久一区二区| 久久久久久美女| 国产一区自拍视频| 亚洲v国产v| 久久色精品视频| 国产精品亚洲第一区| 亚洲高清资源综合久久精品| 久草综合在线观看| 国产一区视频免费观看| 亚洲v日韩v欧美v综合| 国产成人无码av在线播放dvd| 国产日韩精品电影| 天天在线免费视频| 国产精品欧美一区二区三区奶水| 分分操这里只有精品| 人人妻人人澡人人爽欧美一区 | 一区二区成人国产精品| 久久国产精品高清| 国产一区香蕉久久| 日韩女在线观看| 欧美激情精品久久久久久久变态| 国产超级av在线| 国产伦精品一区二区三区四区视频| 婷婷亚洲婷婷综合色香五月| 国产精品入口日韩视频大尺度| 91久久精品日日躁夜夜躁国产| 欧美精品久久久久久久久久久| 亚洲专区在线视频| 国产精品久久久久99| 久久av一区二区| www.av蜜桃| 黄色国产一级视频| 色欲色香天天天综合网www| 欧美精品免费在线观看| 久久久久女教师免费一区| 成人免费在线网址| 麻豆中文字幕在线观看| 日韩欧美亚洲日产国产| 一道精品一区二区三区| 国产精品高潮呻吟视频| 播播国产欧美激情| 91精品久久久久久久久中文字幕| 国产一区二区在线观看免费播放| 日韩欧美一区二区在线观看| 亚洲精品无人区| 欧美日韩福利视频| 久久精品视频在线观看| 久久国产主播精品| 91精品国产九九九久久久亚洲 | 色婷婷久久一区二区| 91九色偷拍| 国产精品亚洲视频在线观看| 国内精品久久国产| 欧美一区二区中文字幕| 欧美一级片免费观看| 亚洲欧洲精品一区二区三区波多野1战4| 国产精品久久久久久久久影视 | 国产精品一色哟哟| 免费在线一区二区| 日本久久中文字幕| 色婷婷综合久久久久中文字幕| 久操成人在线视频| 不卡av在线播放| 国产精品久久久对白| 久热精品视频在线| 久久久国产影院| 色婷婷av一区二区三区在线观看| 国产成人亚洲综合91| 久久久午夜视频| 久久琪琪电影院| 久久人91精品久久久久久不卡| 99精彩视频在线观看免费| 成人久久18免费网站漫画| 国产日韩欧美精品| 国产系列第一页| 国产午夜福利在线播放| 国产亚洲精品美女久久久m| 精品一区二区中文字幕| 精品视频高清无人区区二区三区| 欧美 日韩 国产一区| 欧美日韩在线高清| 国严精品久久久久久亚洲影视| 精品人妻一区二区三区四区在线| 欧美日韩系列| 欧美精品一区二区三区久久| 麻豆一区二区三区在线观看| 国产日韩欧美在线观看| 成人伊人精品色xxxx视频| 成人免费在线一区二区三区| 97碰碰碰免费色视频| 97精品国产97久久久久久粉红| 91久久精品视频| 九一国产精品视频| 久久久www成人免费精品张筱雨| 国产精品国模在线| 最新不卡av| 日韩av免费在线| 欧美激情专区| 国产日韩在线亚洲字幕中文| 不卡一区二区三区视频| 久久男人资源视频| 久久人人爽亚洲精品天堂| 精品国产无码在线| 亚洲综合av一区| 日本一区二区三区在线视频| 欧美专区在线观看| 国产日产久久高清欧美一区| 99re在线视频上| 日韩一二三在线视频播| 久热精品在线视频| 亚洲91精品在线观看| 欧美一级二级三级九九九| 国产特级黄色大片| 国产精品69页| 国产精品区免费视频| 亚洲伊人婷婷| 欧美久久久久久久久久久久久| 国产欧美一区二区三区久久人妖| 成人精品视频久久久久| 国产高清精品一区| 国产精品久久久久久久久借妻| 亚洲最大激情中文字幕| 日韩精品国内| 成人综合国产精品| 日韩在线免费av| 曰韩不卡视频| 奇米精品一区二区三区| 国产在线视频欧美一区二区三区| 7777奇米亚洲综合久久| 国产精品电影网站| 天堂av一区二区| 国产自偷自偷免费一区| 久久久之久亚州精品露出| 国产精品久久久久久久午夜| 亚洲va码欧洲m码| 国产一级不卡视频| 久久久久久久久亚洲| 欧美激情亚洲另类| 欧美亚洲午夜视频在线观看| aaa免费在线观看| 国产精品久久久久久婷婷天堂 | 国产精品国语对白| 日本一道本久久| 国产精品一区二区你懂得| 久久精品国产欧美亚洲人人爽| 亚洲一区二区中文| 黄瓜视频免费观看在线观看www| 久久综合色一本| 在线观看亚洲视频啊啊啊啊| 激情小说网站亚洲综合网| 91av网站在线播放| 美女啪啪无遮挡免费久久网站| 欧美一区深夜视频| 久久男人资源站| 亚洲 中文字幕 日韩 无码| 国产欧美精品va在线观看|