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

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

代做COMP2046、代寫Memory Management

時間:2023-12-17  來源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯


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.

 

請加QQ:99515681 或郵箱:99515681@qq.com   WX:codehelp

 

掃一掃在手機打開當前頁
  • 上一篇:G6017編程代做代寫、MATLAB編程設計代做
  • 下一篇:代做Writing a Dynamic Storage Allocator
  • 無相關信息
    合肥生活資訊

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

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    国产成人精品999| 日韩在线www| 久久综合精品一区| 精品乱子伦一区二区三区| 琪琪亚洲精品午夜在线| 国产成人综合精品| 在线观看亚洲视频啊啊啊啊| 国内精品久久久久久久久| 久久精品在线播放| 热久久99这里有精品| 九色91视频| 日本高清+成人网在线观看| 久久久精品在线视频| 日韩.欧美.亚洲| 久久99九九| 欧美在线亚洲一区| 久久精品国产精品| 欧美午夜视频在线| 国产精品视频地址| 黄色一级片国产| 久久福利视频网| 免费观看精品视频| 日韩视频第一页| 欧美亚洲国产精品| 久久久91精品| 黄色免费高清视频| 国产精品成人久久电影| 国产一二三四区在线观看| 欧美成人性色生活仑片| 国产资源在线视频| 国产av不卡一区二区| 国产麻豆日韩| 欧美巨猛xxxx猛交黑人97人| 国产一区二区不卡视频| 久久久久久成人精品| www亚洲国产| 亚洲国产精品久久久久婷蜜芽 | 久久99精品久久久久久三级 | 成人免费网站在线| 亚洲欧洲精品在线| aaa毛片在线观看| 午夜免费电影一区在线观看| 久久久在线视频| 日本www高清视频| 国产精品视频一区二区三区四区五区 | 久久天天躁狠狠躁老女人| 男人添女人下部高潮视频在观看 | 国产精品一区在线播放| 亚洲va欧美va在线观看| 久久久久久免费精品| 欧美中文字幕在线播放| 国产精品视频永久免费播放| 国产一区二区在线网站| 中文字幕在线中文字幕日亚韩一区| 成人伊人精品色xxxx视频| 亚洲xxxx视频| 久久久久久久久久久久久久久久久久av | 久久久国产一区二区三区| 国产肉体ⅹxxx137大胆| 欧美精品videos性欧美| 77777亚洲午夜久久多人| 日韩精品一区二区三区色欲av| 久久色免费在线视频| 国产裸体舞一区二区三区| 午夜啪啪免费视频| 国产精品老女人视频| 91精品久久久久久久久久入口| 欧美一区二区影视| 久久伊人精品视频| 97久久精品人搡人人玩| 日韩精品欧美专区| 欧美日韩国产成人| 日韩最新av在线| 成人精品一区二区三区 | 欧美成人精品一区| 国产精品99久久久久久www | 欧美性视频精品| 制服诱惑一区| 精品国产视频在线| 国产视频九色蝌蚪| 日产日韩在线亚洲欧美| 国产精品国产三级欧美二区| 久久婷婷人人澡人人喊人人爽| 国内外免费激情视频| 性色av香蕉一区二区| 国产精品吹潮在线观看| 国产高清自拍99| 国产精选在线观看91| 极品粉嫩国产18尤物| 欧美一区二区三区在线播放| 久久综合免费视频| 久久99国产精品| 成人av在线亚洲| 狠狠色综合欧美激情| 午夜精品久久久久久久久久久久久 | 久久九九热免费视频| 91精品在线播放| 国产亚洲精品美女久久久m| 日韩av日韩在线观看| 久久99视频精品| 播播国产欧美激情| 久久综合中文色婷婷| 成人国产精品日本在线| 国产日韩综合一区二区性色av| 欧美国产一二三区| 欧美有码在线视频| 日本高清久久天堂| 亚洲国产一区二区三区在线播| 欧美情侣性视频| 国产精品乱码久久久久| 国产成人精品视频在线观看| 国产福利不卡| 久久亚洲精品欧美| 成人久久久久爱| 国产一区 在线播放| 激情小视频网站| 日韩人妻精品无码一区二区三区| 日韩一区二区三区资源| 一道精品一区二区三区| 亚洲图片小说在线| 中文字幕在线亚洲精品| 亚洲最大成人在线| 中文字幕av久久| 伊人天天久久大香线蕉av色| 精品国产乱码久久久久久丨区2区 精品国产乱码久久久久久郑州公司 | 日韩最新在线视频| 久久久久久噜噜噜久久久精品| 久久伊人一区二区| 国产富婆一区二区三区| 久久国产亚洲精品无码| 久久久久在线观看| 久久久久久精| 久久久国产视频| 国产精品高清网站| 欧美日本中文字幕| 国产精品久久一区主播| 国产精品高潮呻吟视频| 国产精品高潮粉嫩av| 美女av一区二区三区| 国产精品久久久久aaaa九色| 国产精品国产对白熟妇| 欧美大胆在线视频| 欧美精品久久久久久久免费观看| 精品综合久久久久久97| 亚洲一二三区精品| 日本在线精品视频| 欧美激情国产精品日韩| 国产婷婷一区二区三区| 99视频精品全部免费看| 国产成人精品日本亚洲专区61| 日韩亚洲第一页| 欧美精品免费看| 亚洲国产精品久久久久爰色欲| 日韩 欧美 自拍| 青青草原av在线播放| 含羞草久久爱69一区| 成人中文字幕在线播放| 91国产美女视频| 日韩在线观看免费av| 久久国产精品电影| 亚洲www在线| 欧美中日韩在线| 国产精品一二三视频| 国产成人亚洲综合无码| 久久精品国亚洲| 色综合久久悠悠| 欧美一级在线播放| 麻豆精品传媒视频| 97人人模人人爽人人喊38tv| 国产成人自拍视频在线观看| 国产成人看片| 国产aaa免费视频| 日本wwwcom| 国产无限制自拍| 国产成人综合av| 欧美成人精品一区二区| 色狠狠久久av五月综合|| 韩国精品一区二区三区六区色诱| 99热一区二区三区| 久久久国产精品免费| 亚洲日本一区二区三区在线不卡| 欧美综合在线观看视频| www国产亚洲精品| 国产精品免费观看高清| 一区二区不卡在线观看| 日本a级片在线播放| 国产日产欧美a一级在线| 国产成人亚洲综合青青| 久久国产精品影视| 欧美一性一乱一交一视频| 99久久自偷自偷国产精品不卡 | 亚洲直播在线一区| 狠狠色噜噜狠狠狠狠色吗综合| 91九色极品视频| 欧美成人免费一级人片100| 日本国产高清不卡| 97精品在线视频| 久久99精品久久久久久噜噜| 日本久久久网站| 91麻豆蜜桃|