Linux Memory Allocator is a multithreaded C++ memory allocator designed to provide advanced allocation strategies and optimized memory management. This project offers flexibility and efficiency for managing memory in C++ applications.
- Multithreaded Support: Safely manage memory across multiple threads.
- Flexible Allocation Strategies: Choose between various allocation algorithms, including First Fit and Best Fit.
- Memory Optimization: Efficiently handle memory with compaction and merging of contiguous free blocks.
- Detailed Statistics: Get insights into memory usage and allocation statistics.
- C++11 or later
g++
for compiling
-
Clone the repository:
git clone https://github.com/ahmad-masud/Linux-Memory-Allocator
-
Navigate to the project directory:
cd Linux-Memory-Allocator
-
Build the project using
make
:make
-
Run the executable:
./myalloc
-
The program will demonstrate allocation and deallocation of memory using the custom allocator.
Contributions are welcome! Please open an issue or submit a pull request with your proposed changes.
This project is licensed under the MIT License. See the LICENSE file for details.
- Inspired by classic memory management techniques.
- Developed with modern C++ features for enhanced performance and safety.