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

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

代做COMP2046、代寫(xiě)Memory Management

時(shí)間:2023-12-17  來(lái)源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)


Coursework COMP2046: Memory Management and Concurrent Programming

 Weight: 20% module marks

Deadline: 22nd December 2023, 5pm Beiging time

Submission: Create a single scyXXX.zip (Student account) file containing your source code files and reports. We will need to rebuild your code to test your implementation. You should submit your single zip file through Moodle.

Copying Code and Plagiarism

 You may freely copy and adapt any code samples provided in the lab exercises or lectures. You may freely copy code samples from the Linux/POSIX websites, which has many examples explaining how to do specific tasks. This coursework assumes that you will do so and doing so is a part of the coursework. You are therefore not passing someone else’s code off as your own, thus doing so does not count as plagiarism. Note that some of the examples provided omit error checking for clarity of the code. You are required to add error checking wherever necessary.

You must not copy code samples from any other source, including another student on this or any other course, or any third party (such as GPT). If you do so then you are attempting to pass someone else’s work off as your own and this is plagiarism. The University takes plagiarism extremely

seriously and this can result in getting 0 for the coursework, the entire module, or potentially much worse.

Coding and Compiling Your Coursework

 You are free to use a code editor of your choice, but your code MUST compile and run on a Linux environment. It will be tested and marked on these machines.

IMPORTANT: There are source file memory_allocation_simulation.c available on Moodle for download that you must use. To ensure consistency across all students, apart from the number parameter setting changes and the required TODO code, you are not allowed to change anything in the given source files. You need to compile your code using gcc compiler (e.g. gcc task1.c - o taks1 or gcc task2.c -pthread -o task2 ). Code cannot be successfully compiled on linux

     

 environment will receive ZERO marks.

 Introduction

 This coursework simulates real-world scenarios in memory management and concurrent programming. It is designed to deepen your understanding of these fundamental concepts through hands-on implementation and analysis.

Task 1: Memory Allocation Algorithm Implementation within a Bounded Buffer (6 Marks)

Objective

Implement and complete a memory allocation algorithm within a bounded buffer to emulate real- world memory management scenarios.

System Overview and Simulation Context

Code Base: You are provided with memory_allocation_simulation.c , which sets the groundwork for the simulation.

Simulation Environment: The code simulates a memory management system, reflecting typical real-world constraints and behaviors.

Random Memory Requests: The system generates multiple random memory requests, each with a unique ID, required memory size, allocation time, and duration.

Bounded Buffer Implementation: A bounded buffer, acting as a queue, stores up to 100 memory allocation requests. It manages incoming requests when immediate allocation is not feasible.

Memory Allocation Recording: A linked-list structure records the allocation status, with each node indicating process or hole status, request ID, and other relevant data.

Fixed-Size Memory Blocks: Memory is pre-allocated in 1MB (1024KB) blocks, subdivided into 1KB slices for allocation to requests.

Allocation Failure Handling: Requests failing immediate allocation due to space constraints or fragmentation are queued in the buffer.

Periodic Deallocation and Compaction: The system periodically deallocates memory and compacts freed spaces to optimize allocation efficiency.

 

 Configuration Parameters: The simulation works with a total memory size of 1MB, slice size of 1KB, and request sizes varying between 2KB to 50KB.

Detailed Requirements

Complete the Code: Complete the TODO code sections and enhance the provided simulation code to fully implement the memory management system.

Allocation Algorithms: Implement and integrate the Next Fit and Worst Fit allocation algorithms, in addition to the existing First Fit algorithm.

Memory Compaction: Develop a method to compact memory upon deallocation, improving allocation efficiency.

Submission

Submit task1.c containing your source code.

Ensure your code includes clear, explanatory comments.

Evaluation Criteria

Correct Implementation (**%): Accurate and efficient functioning of the Next Fit and Worst Fit algorithms, and the memory compaction method.

Documentation and Comments (10%): Clarity and usefulness of comments explaining the logic behind your implementation.

   Task 2: Multi-threaded Producer-Consumer Simulation with Counted Semaphores (6 Marks)

Objective

Based on the memory management simulation provided by Task 1 ( task1.c ), the objective of this task is to develop a multi-threaded simulation of a producer-consumer system, specifically focusing on memory management. This task requires the use of counted semaphores to manage synchronization between multiple producer and consumer threads.

Detailed Requirements

 Thread Creation and Roles:

 

 Implement a multi-threaded environment with separate threads acting as producers and consumers.

Producers generate memory allocation requests, while consumers process these requests.

Producer Threads:

Each producer thread should generate a random number of memory allocation requests. Request sizes should be random within a specified range (e.g., 2KB to 50KB).

Once generated, these requests must be enqueued into a shared bounded buffer.

Consumer Threads:

Consumer threads are responsible for dequeuing and processing memory allocation

requests from the buffer.

Processing includes simulating the allocation or deallocation of memory blocks, adhering to the memory allocation algorithms implemented in Task 1.

Synchronization with Counted Semaphores:

Utilize counted semaphores to manage access to the shared bounded buffer effectively.

Implement semaphores to signal when the buffer is not empty (for consumers) and not full (for producers), ensuring efficient and safe operation of the producer-consumer system.

Ensure thread safety and prevent race conditions with proper semaphore operations (wait and signal).

Logging and Monitoring:

Provide console output indicating the activities of consumer threads, including

allocation and deallocation of memory blocks.

Include details such as thread ID, operation type, and memory block size in the log messages.

Evaluation Criteria

Implementation of Semaphores (30%): Efficient semaphore use. Functionality (30%): Proper thread operation.

Synchronization (30%): Effective synchronization method.

 

 Documentation and Comments (10%): Quality of comments. Submission

Submit a file named task2.c containing the source code for this simulation.

The code should be well-commented, detailing the implementation and usage of semaphores and thread interactions.

  Task 3: Testing and Performance Analysis (8 Marks)

Objective

Implement and write a report that evaluates the correctness and performance of your implementation in the real-world scenario simulation.

Detailed Requirements:

Test the program using different scenarios, such as varying numbers of producer and consumer threads, different buffer sizes, and a variety of memory allocation patterns.

Measure and analyze key performance metrics, such as throughput (requests processed per second), respond time (hint: you can sue logging time method in the lab to measure the time), and resource utilization.

Discuss the advantages and disadvantages of the chosen memory allocation algorithm in the context of the simulated real-world scenario.

Evaluation Criteria

Testing Accuracy (40%): The thoroughness and relevance of the testing scenarios. Performance Analysis (20%): Depth and accuracy of performance metrics analysis.

Algorithm Evaluation (20%): Critical analysis of the chosen memory allocation algorithm's effectiveness.

Report Quality (20%): Clarity, structure, and comprehensiveness of the written report.

Submission

 Submit a file named task3.pdf containing the report for this performance analysis. The

 

 report should clearly articulate the testing process, performance metrics, and your analysis of the memory allocation algorithm. The length of the report should be less than three pages.

You can also submit your supporting documents (optional):

Source code used to generate evaluation metrics. This code should be well-commented and organized for easy understanding.

Any additional supporting documents such as screenshots of testing, graphs, charts, or other visual aids that illustrate your testing and analysis.

Ensure that all documents are comprehensively labeled and easy to navigate.

 Conclusion

 Completing these tasks will provide invaluable experience in integrating and evaluating memory management algorithms within concurrent programming environments. Good luck, and remember that assistance is available if you have any questions or need further guidance.

 

請(qǐng)加QQ:99515681 或郵箱:99515681@qq.com   WX:codehelp

 

掃一掃在手機(jī)打開(kāi)當(dāng)前頁(yè)
  • 上一篇:G6017編程代做代寫(xiě)、MATLAB編程設(shè)計(jì)代做
  • 下一篇:代做Writing a Dynamic Storage Allocator
  • 無(wú)相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真技術(shù)服務(wù)
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲勞振動(dòng)
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)40個(gè)行業(yè)
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)4
    超全面的拼多多電商運(yùn)營(yíng)技巧,多多開(kāi)團(tuán)助手,多多出評(píng)軟件徽y1698861
    超全面的拼多多電商運(yùn)營(yíng)技巧,多多開(kāi)團(tuán)助手
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服務(wù)平臺(tái)
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內(nèi)
    釘釘簽到打卡位置修改神器,2026怎么修改定
    2025年10月份更新拼多多改銷助手小象助手多多出評(píng)軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)/客戶要求/設(shè)計(jì)優(yōu)化
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)
  • 短信驗(yàn)證碼 寵物飼養(yǎng) 十大衛(wèi)浴品牌排行 目錄網(wǎng) 排行網(wǎng)

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號(hào)-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    亚洲色成人一区二区三区小说| 日本黄网站免费| 91精品视频专区| 91国偷自产一区二区三区的观看方式 | 久久久久久久久久久网站| 久久免费一区| 久久另类ts人妖一区二区| 久久精品香蕉视频| 日韩视频在线一区| 欧美成人四级hd版| 亚洲欧美国产不卡| 区一区二区三区中文字幕| 韩国日本不卡在线| 不卡一区二区三区四区五区| 国产成人一区二区| 久久精品一偷一偷国产| 欧美精品做受xxx性少妇| 亚洲精品一区二| 青青青在线播放| 欧美高清中文字幕| 国产女人水真多18毛片18精品| 97免费视频观看| 九色在线视频观看| 蜜臀久久99精品久久久久久宅男| 亚洲精品一品区二品区三品区| 日本一区二区高清视频| 欧美日韩激情四射| 国产女教师bbwbbwbbw| 97国产精品免费视频| 久久99精品久久久久久秒播放器 | 国产又爽又黄的激情精品视频| 国产奶头好大揉着好爽视频| 国产精品99久久久久久www| 日韩在线视频国产| 综合操久久久| 欧美凹凸一区二区三区视频| 国产精品一区二区不卡视频| 久久久久久久久久久av| 一区二区三区在线视频111| 人妻无码久久一区二区三区免费| 国产伦精品一区二区三区精品视频 | 亚洲免费不卡| 国内自拍欧美激情| 国产va亚洲va在线va| 久热精品视频在线观看一区| 日本在线精品视频| 国产欧美日韩91| 精品国产一区久久久| 亚洲国产精品视频一区| 国模极品一区二区三区| 久久99精品久久久久子伦| 一区国产精品| 国产视频一区二区三区四区 | 在线观看国产一区| 国内精品在线一区| 日韩在线视频导航| 性欧美在线看片a免费观看| 国产女人18毛片| 国产精品日韩一区| 欧美亚洲另类激情另类| 国产成人亚洲综合91精品| 自拍视频一区二区三区| 免费av在线一区二区| 日韩在线观看免费网站| 无码人妻精品一区二区蜜桃网站| 国产欧美精品日韩| 久久人人爽人人爽人人片亚洲| 欧美一级片在线播放| 97精品国产91久久久久久| 久久国产精品偷| 国产综合久久久久| 国产精品精品视频| 欧美亚洲国产免费| 久久精品视频网站| 欧美 日韩 激情| 久久久91精品国产| 欧美在线3区| 日韩中文字幕精品视频| 欧美中文字幕在线| 日韩中文第一页| 欧美亚洲一区在线| 九一免费在线观看| 欧洲美女7788成人免费视频| 日韩中文字幕在线免费观看| 欧美做受高潮1| 久久精品视频中文字幕| 国内精品久久久久久久果冻传媒 | 国产欧美亚洲精品| 久久99久久99精品中文字幕| 国产女人18毛片| 亚洲五月六月| 久久久精品国产一区二区三区| 天天人人精品| 久久这里只有精品23| 日本最新高清不卡中文字幕| 国产夫妻自拍一区| 日韩免费观看网站| 国产精品美乳在线观看| 激情小视频网站| 久久6免费高清热精品| www.日日操| 日本一区二区三区在线播放| 日韩视频―中文字幕| 免费看黄色a级片| 一区二区三区观看| 久久一区二区三区欧美亚洲| 日韩精品一区二区三区色偷偷 | 久久久久久12| 久久久久久艹| 激情视频综合网| 久久久久久97| 视频直播国产精品| 国产无套内射久久久国产| 亚洲欧美国产不卡| 日韩视频一区在线| 国产精品一区二区三区观看| 日韩av成人在线观看| 国产精品久久久久久搜索| 国产欧美日韩中文| 欧美一级视频一区二区| 久久精品视频中文字幕| 成人久久18免费网站漫画| 日本久久久久久久久| 国产精品日日摸夜夜添夜夜av| 国产精品一二三视频| 人人做人人澡人人爽欧美| 久久亚洲精品网站| 久久综合九色99| 国产婷婷一区二区三区| 视频一区二区三区在线观看| 国产精品青青在线观看爽香蕉| 99久热在线精品视频| 欧美亚洲另类制服自拍| 国产aaa一级片| 日韩专区在线观看| 99精品99久久久久久宅男| 欧美激情专区| 无码av天堂一区二区三区| 国产精品电影久久久久电影网| 99中文视频在线| 免费观看国产成人| 天堂√在线观看一区二区| 国产精品成人免费视频| 国产av熟女一区二区三区| 国产精品中文久久久久久久| 欧美久久电影| 日韩av第一页| 亚洲永久一区二区三区在线| 久久精品国产96久久久香蕉| 91高清视频免费| 国产人妻人伦精品| 欧美国产亚洲一区| 日本a在线免费观看| 亚洲一区中文字幕在线观看| 操91在线视频| 久久久久99精品久久久久| 久久久国产精品一区二区三区| 国产女主播av| 国产日韩欧美综合精品| 欧美 国产 日本| 欧美日韩精品不卡| 日韩女优中文字幕| 性欧美长视频免费观看不卡| 欧美日韩999| 精品视频9999| 国产精品国产三级国产专区53| 国产成人午夜视频网址| 久久riav二区三区| 久久精品中文字幕一区二区三区| 不卡视频一区二区| 国产精品一二三在线观看| 国产又大又硬又粗| 国产一区免费观看| 国产一区二区不卡视频| 美女在线免费视频| 麻豆久久久av免费| 国产在线一区二区三区播放| 免费特级黄色片| 黄色片视频在线播放| 欧美一级二级三级九九九| 青草成人免费视频| 欧美视频免费播放| 欧美亚洲第一区| 蜜桃视频一区二区在线观看| 国产综合久久久久久| 国产日韩欧美另类| 国产精品一区av| 99爱视频在线| 国产成人综合一区二区三区| 久久久久久这里只有精品| 久久久久久久久久久av| 国产精品视频色| 久久国产精品久久久久久| 欧美精品免费看| 亚洲一卡二卡区| 色大师av一区二区三区| 热久久这里只有精品| 激情五月婷婷六月| 国产美女99p| 久久久久se|