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

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

代做COMP2046、代寫Memory Management

時間:2023-12-17  來源:合肥網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
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業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在线免费观看
    国产精品入口夜色视频大尺度| 黄色动漫在线免费看| 久久免费精品日本久久中文字幕| 国产精品一区二区在线观看| 欧美亚洲免费在线| 欧美亚洲另类制服自拍| 欧美日韩精品一区| 好吊色欧美一区二区三区| 国产精品夜间视频香蕉| 成人免费无码av| 97碰在线视频| 久久久一二三四| 久久国产精品影视| 在线播放 亚洲| 视频一区二区在线观看| 日韩欧美猛交xxxxx无码| 日韩精品最新在线观看| 欧美日韩亚洲综合一区二区三区激情在线| 奇米成人av国产一区二区三区| 人体内射精一区二区三区| 国产精品18毛片一区二区| 日韩在线视频二区| 国产精品久久久久久久久婷婷| 欧美大成色www永久网站婷| 亚洲综合小说区| 日韩暖暖在线视频| 蜜桃麻豆91| www.欧美日本| 九九热久久66| 国产精品久久久久久久app| 欧美激情a∨在线视频播放| 少妇高潮流白浆| 黄色一级一级片| 91精品国产综合久久香蕉| 国产成人无码精品久久久性色 | 日韩国产一级片| 国产一区视频免费观看| 7777精品久久久大香线蕉小说| 久久99精品久久久久久久久久 | 欧美一区二区三区……| 国内精品模特av私拍在线观看| www国产免费| 久久久精品国产网站| 综合一区中文字幕| 欧美有码在线观看| 国产精品一区二区久久久| 久久99精品国产一区二区三区| 精品国产乱码久久久久久丨区2区 精品国产乱码久久久久久郑州公司 | 国产精品久久久久77777| 亚洲乱码一区二区三区三上悠亚| 黄色片视频在线播放| 免费在线观看毛片网站| 91国内揄拍国内精品对白| 国产精品福利视频| 日韩欧美一区二区三区久久婷婷| 国产女主播自拍| 久热99视频在线观看| 日韩精品最新在线观看| 99在线观看| 麻豆成人在线看| 欧美在线观看一区二区三区| av在线免费观看国产| 国产精品久久7| 人人妻人人做人人爽| 91精品国产九九九久久久亚洲| 国产精品久久7| 欧美日韩一区二区三区电影| 国产成人福利网站| 亚洲一区精彩视频| 国产美女久久久| 国产精品视频公开费视频| 久久久久久久久久久久av| 天堂资源在线亚洲资源| 国产精品一二三在线观看| 国产精品欧美在线| 欧美亚洲丝袜| 久久久久九九九| 午夜精品短视频| 97成人精品视频在线观看| 美日韩精品免费观看视频| 国产综合香蕉五月婷在线| 国产精品嫩草视频| 欧美 日韩 国产精品| 日韩亚洲第一页| 人人妻人人澡人人爽欧美一区 | 国产精品美女主播| 欧美人与性禽动交精品| 日韩在线视频线视频免费网站| 欧美一级免费看| 91av一区二区三区| 亚洲xxxx做受欧美| 91精品国自产在线观看| 天天在线免费视频| 国产高清精品一区二区三区| 色综合久久久久久久久五月| 国产黄色激情视频| 日韩精品在线中文字幕| 色偷偷噜噜噜亚洲男人的天堂 | 日韩色妇久久av| 91av免费看| 日韩av一区二区三区在线观看| 久久精品一区二区三区不卡免费视频| 亚洲精品日韩av| 国产成人亚洲精品| 欧洲精品在线一区| 国产精品久久久久久久免费大片| 精品一区二区视频| 在线一区亚洲| 国产经典一区二区| 日本久久久精品视频| 精品国产一区久久久| 国产在线视频91| 亚洲午夜高清视频| 国产二区不卡| 欧美性资源免费| 另类美女黄大片| 97国产在线视频| 日韩精品最新在线观看| 国产精品久久久久久久小唯西川 | 亚洲一区二区高清视频| 久久久久国产精品视频| 欧美在线视频网站| 欧美精品video| 久久国产精品高清| 国模精品娜娜一二三区| 亚洲一区制服诱惑| 国产成人综合一区| 黄网站欧美内射| 亚洲美女搞黄| 国产精品丝袜高跟| 高清欧美性猛交| 日韩精品国内| 一区二区不卡视频| 久久久久久久久一区二区| 国产一区二中文字幕在线看| 无码播放一区二区三区| 久久人人爽亚洲精品天堂| av免费观看网| 欧美亚州一区二区三区| 亚洲综合色av| 国产精品无码电影在线观看| 激情五月五月婷婷| 亚洲免费在线精品一区| 久久精品99无色码中文字幕| 国产精品一区二区三区毛片淫片| 五月天综合婷婷| 国产精品果冻传媒潘| 国产传媒一区二区三区| 国产视频观看一区| 青青青青草视频| 亚洲欧洲另类精品久久综合| 另类天堂视频在线观看| 日韩视频中文字幕| 91精品在线看| 精品日韩欧美| 欧美一区免费视频| 久久久久国产精品免费| 久久九九免费视频| 国产妇女馒头高清泬20p多| 国产青青在线视频| 欧美亚洲一级片| 日韩欧美亚洲区| 色香蕉在线观看| 亚洲综合激情五月| 精品国产乱码久久久久久久软件 | 99在线观看| 高清无码视频直接看| 男女视频网站在线观看| 日本不卡一区二区三区视频| 久久精品国产96久久久香蕉| 国产成人精品999| 国产精品2018| 91精品国产自产在线老师啪| 国产免费一区二区三区在线能观看| 欧美日韩精品久久| 欧美一区二区综合| 日韩激情免费视频| 日本最新一区二区三区视频观看| 亚洲精品中文字幕乱码三区不卡| 欧美激情二区三区| 欧美激情喷水视频| 精品国产乱码久久久久久蜜柚| 国产精品入口免费视频一| www.亚洲免费视频| 国产成人久久婷婷精品流白浆| 色青青草原桃花久久综合| 日韩一区二区福利| 色婷婷综合久久久久| 日韩视频一区在线| 国产精品色视频| 免费97视频在线精品国自产拍| 国产精品第1页| 日本福利视频网站| 日韩视频在线观看国产| 欧美视频在线第一页| 欧美亚洲一级片| 国产一区二区三区小说| 国产自偷自偷免费一区| 国产美女精品久久久| 成人国产在线看|