加勒比久久综合,国产精品伦一区二区,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不卡| 欧美成人日韩| 麻豆成人91精品二区三区| 亚洲少妇在线| 久久久久久黄| 亚洲丝袜美腿一区| 日韩精品乱码av一区二区| 蜜臀国产一区二区三区在线播放| 精品久久久久久久久久久aⅴ| 电影91久久久| 欧美a视频在线| 四季av一区二区凹凸精品| 欧美精品一区二区久久| baoyu135国产精品免费| 国产精品99久久免费| 日韩三区四区| 久久男人av资源站| 国产亚洲一区在线| 久久裸体网站| 欧美成a人免费观看久久| 欧美午夜网站| 国内精品久久久久久久97牛牛| 偷拍精品精品一区二区三区| 久久av最新网址| 伊人久久大香线蕉综合热线| 天天躁日日躁狠狠躁欧美| 成午夜精品一区二区三区软件| 国产精品免费大片| 综合久久av| 另类小说综合欧美亚洲| 国产资源一区| 亚洲最新无码中文字幕久久| 免费xxxx性欧美18vr| 91久久黄色| 91成人观看| 精品日本12videosex| 99久久精品费精品国产| 欧美日韩麻豆| 国产欧美自拍一区| 人人狠狠综合久久亚洲婷婷 | 97欧美成人| 日韩欧美三级| 都市激情亚洲一区| 日韩久久精品网| av中文资源在线资源免费观看| 久久亚洲国产精品一区二区| 亚洲综合丁香| 免费成人性网站| 欧美aaaa视频| 国产精品专区免费| 日韩中文视频| 久久av影院| 久久精品国产精品亚洲综合| 久久一日本道色综合久久| 一区二区三区四区五区精品视频| 国产福利亚洲| 乱一区二区av| 成人噜噜噜噜| 久久综合偷偷噜噜噜色| 伊人久久噜噜噜躁狠狠躁| 给我免费播放日韩视频| 久久婷婷久久| 一级毛片免费高清中文字幕久久网 | 偷拍精品精品一区二区三区| 亚洲四虎影院| 国产欧美日韩综合一区在线播放 | 极品国产人妖chinesets亚洲人妖| 97色成人综合网站| 久久精品导航| 在线观看国产精品入口| 久久亚洲影院| 亚洲欧美日韩精品一区二区 | 蜜桃视频第一区免费观看| 中文字幕成在线观看| 少妇一区视频| 欧美人成在线| 精品亚洲二区| 亚洲国内欧美| 日韩专区在线视频| 国产在线美女| 日韩国产精品大片| 日韩一级电影| 国产精品99免费看| 水野朝阳av一区二区三区| 日韩理论片av| 欧美激情综合| 99久久人爽人人添人人澡| 激情国产一区| 岛国av免费在线观看| 欧美在线三区| 亚洲va久久| 国产一区二区中文| 91亚洲国产成人久久精品| 久久精品人人做人人爽电影蜜月| 亚洲精品3区| 中国av一区| 日韩欧美网站| 国内不卡的一区二区三区中文字幕| 国产免费av国片精品草莓男男| 欧美另类69xxxxx| 极品av在线| 亚洲毛片在线免费| 久久蜜桃精品| av在线播放资源| 中文精品久久| 久久精品青草| 中文av在线全新| 97久久中文字幕| 欧美色就是色| 免费在线小视频| 亚洲日产av中文字幕| 天天av综合| 91福利精品在线观看| 美女毛片一区二区三区四区最新中文字幕亚洲 | 狂野欧美性猛交xxxx巴西| 国产精品一二| 国产精品久久久网站| 国产精品国内免费一区二区三区| 老司机精品视频一区二区三区| 高清一区二区三区| 久久久久久夜| 国产成人短视频在线观看| 亚洲天堂久久| 日韩一区中文| 久久免费高清| 精品日本视频| 91免费精品国偷自产在线在线| 免费高清在线一区| 国产欧美精品久久| 国产婷婷精品| 羞羞视频在线观看欧美| 久久久天天操| 久久女人天堂| 亚洲黑丝一区二区| 国产精品美女午夜爽爽| 久久婷婷激情| 福利一区二区免费视频| 精品视频亚洲| 亚洲精品大片| 欧美日韩水蜜桃| 国产欧美亚洲一区| 欧美va天堂| 日本欧美一区二区在线观看| 天天天综合网| 中文无码久久精品| 午夜一区在线| 久久成人av| 黄色亚洲网站| 国产乱人伦丫前精品视频| 青青久久精品| 久久久久久久久99精品大| 国产欧美在线| 99日韩精品| 日韩超碰人人爽人人做人人添| 欧美在线综合| 日韩高清在线观看一区二区| 日本综合字幕| 久久精品国内一区二区三区水蜜桃| 国产精品久久久久久久久久齐齐| 99久久激情| 91精品视频一区二区| 喷白浆一区二区| 91蜜桃臀久久一区二区| 色综合视频一区二区三区44| 亚洲高清久久| 99精品女人在线观看免费视频| 香蕉亚洲视频| 97久久综合区小说区图片区| 久久亚洲资源中文字| 国产精品女主播一区二区三区 | 亚洲开心激情| 国产欧美一级| 欧美专区18| 国产图片一区| 最新国产精品| 免费一二一二在线视频| 中国av一区| 午夜精品福利影院| 热久久久久久| 亚洲免费激情| 国产美女亚洲精品7777| 欧美a一级片| 蜜桃免费网站一区二区三区| 国产伦理久久久久久妇女 | 欧美中文一区| 综合久久av| 日韩精品一区二区三区av| 亚洲经典在线看| 国产+成+人+亚洲欧洲在线| 在线国产精品一区| 久草在线中文最新视频| 999久久久国产精品| 亚洲福利网站| 国产毛片精品久久| 欧美h版在线| 91九色精品| 国产精品主播在线观看| 91麻豆精品一二三区在线| 亚洲爱爱视频| 日韩精品一二三区|