99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

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

代做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

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                野战少妇38p| 国产传媒视频在线| 成人精品在线看| 日韩一级在线播放| 99久久人妻精品免费二区| 久久日免费视频| 99久久久久久久久| 日本熟妇一区二区| 国产特级黄色录像| 911亚洲精选| 天天色天天综合| 久久久999久久久| 国产成人av免费看| 97精品在线播放| 一区二区三区在线免费观看视频 | 国产吞精囗交久久久| 中文字幕亚洲高清| 四虎国产精品免费| 97人妻精品一区二区免费| 成人av一区二区三区在线观看| 国产亚洲第一页| 色一情一区二区| 午夜影院免费视频| 国产资源中文字幕| 日韩精品无码一区二区三区久久久| 亚洲黄色片视频| 一边摸一边做爽的视频17国产| 精品国产aaa| 色一情一乱一乱一区91av| 美女黄色一级视频| 中文字幕avav| 国产精品探花在线播放| 日本一区二区在线免费观看| 亚洲综合自拍网| 蜜臀aⅴ国产精品久久久国产老师 蜜臀99久久精品久久久久小说 | 国产在线观看免费视频软件 | 国产又粗又黄又猛| 日韩免费成人av| www.中文字幕av| 欧美三级小视频| 2014亚洲天堂| 青青草精品在线视频| 亚洲色偷偷综合亚洲av伊人| 久久久美女视频| 一级aaaa毛片| 日韩av福利在线观看| caopor在线| 天堂av资源网| 国产一区二区三区视频免费观看| 亚洲av无一区二区三区| 精品国产乱码一区二区| 中文字幕在线永久| 麻豆精品国产传媒av| 一级特黄aaa大片| 日韩一级免费毛片| 国产午夜小视频| 亚洲免费av一区| 日韩久久久久久久久| 国产精品人人爽人人爽| 午夜久久久久久噜噜噜噜| 黄色片视频网站| 亚洲综合自拍网| 午夜精品福利在线视频| 精品人妻无码一区二区三区| 337p日本欧洲亚洲大胆张筱雨| 欧美一区二区三区激情| 国产特黄一级片| 亚洲三级中文字幕| 天堂在线中文网| 久久午夜鲁丝片| 国产精品国产精品88| 中文字幕在线观看欧美| 欧美日韩综合一区二区三区| 国产激情av在线| 97人妻精品视频一区| 在线观看色网站| 青花影视在线观看免费高清| 国产亚洲精品久久久久久豆腐| 亚洲欧美综合自拍| 在线视频欧美亚洲| 糖心vlog精品一区二区| 欧美成人一区二区三区高清| 国产一区二区麻豆| 国产精品免费人成网站酒店| 97人妻精品一区二区三区动漫| 性一交一乱一色一视频麻豆| 日本高清一区二区视频| 精人妻一区二区三区| 国产绿帽一区二区三区| 97人人澡人人爽人人模亚洲| 亚洲激情 欧美| 在线观看精品国产| 在线观看黄网址| 伊人国产精品视频| 亚洲av永久纯肉无码精品动漫| 日本一区二区三区四区五区| 女人18毛片毛片毛片毛片区二| 国产性猛交╳xxx乱大交| 成人午夜视频精品一区| av手机天堂网| av资源免费看| 国产suv精品一区二区68| 国产传媒免费观看| 国产大学生av| 精品黑人一区二区三区观看时间| 懂色av中文字幕| 国产精品熟女久久久久久| 国产成人免费看| 东京热无码av男人的天堂| 国产91在线播放九色| 国产精品人妻一区二区三区| 黄色一级片免费看| 欧美极品jizzhd欧美18| 天天操狠狠操夜夜操| 一区二区日韩视频| www.中文字幕| 久久免费在线观看视频| 污污污www精品国产网站| 天堂中文资源在线观看| 在线免费黄色网| 国产精久久一区二区三区| 欧美日韩一区二区三区四区五区六区| 亚洲欧美aaa| 久久久久久久久久久久91| av中文字幕网址| 一区二区三区视频在线观看免费| 人妻久久一区二区| 国产午夜精品久久久久久久久| 好男人www在线视频| 九九九国产视频| 深夜福利视频网站| www.com操| 中文字幕一区久久| 亚洲精品久久久中文字幕| av手机在线播放| 人人爽人人爽人人片| 日韩三级小视频| 亚洲区免费视频| 国产51自产区| 欧美三级黄色大片| 亚洲成人福利在线| 超碰人人干人人| 免费中文字幕在线| 亚洲v国产v欧美v久久久久久| 亚洲一区精品视频在线观看| 国产精品第七页| 青青青国产在线| 亚洲欧美日韩成人在线| 国产精品一区二区入口九绯色| 久久久久在线视频| 中文字幕久久av| 国产免费久久久| 天堂成人在线观看| www.五月激情| 漂亮人妻被黑人久久精品| 中文字幕乱码在线| 国产无遮挡猛进猛出免费软件 | 性色av蜜臀av| 国产白袜脚足j棉袜在线观看| 老熟妇精品一区二区三区| 中国毛片直接看| 国产性生活一级片| 亚洲 欧美 日韩系列| 国产精品av久久久久久无| 蜜桃福利午夜精品一区| 亚洲人与黑人屁股眼交| 黄色av网址在线| 亚洲黄色av网址| 精品视频一二三区| 中文永久免费观看| 久久精品视频日本| 亚洲精品午夜久久久久久久| 精品人妻一区二区三区日产乱码卜 | 国产高清成人久久| 性色av免费观看| 国产精品揄拍100视频| 亚洲AV午夜精品| 黄色成人一级片| 亚洲少妇一区二区三区| 人妻少妇精品无码专区久久| 97人妻精品一区二区免费| 日韩精品在线免费看| 国产精品自在自线| 中文字幕中文在线| 人人妻人人澡人人爽精品日本| caoporn超碰97| 亚洲第一狼人区| 欧美精品久久久久久久久46p| 91精品国产高清一区二区三蜜臀 | 亚洲一区二区在线视频观看| 免费黄色在线视频| 成人免费a视频| 在线免费观看国产精品| 久久久久亚洲av无码麻豆| www.国产高清| 香蕉成人在线视频| 欧美性猛交xxxx乱大交少妇| 国产精品成人免费观看| 亚洲国产成人精品女人久久 | 先锋资源在线视频|