Commit 2cd8454a authored by Lindsay Knupp's avatar Lindsay Knupp
Browse files

Lab 7 completed

parent 5a83ede0
In my allocator.c file, the allocate function takes an extra parameter that specifies which type of allocation policy to use: 0 - First Fit, 1 - Best Fit, 2 - Worst Fit. After the type of allocation policy is specified, then you can proceed as normal.
Lindsay Knupp
Lab 7 - designAPI.txt
In order to deal with various policies for contiguous memory allocation, my allocate function requires a size and a allocation type. The size refers to the block of memory that you are trying to request and the allocation type refers to the type of memory allocation policy that you want to implement. 0 specifies First-Fit, 1 specifies Best-Fit, and 2 specifies Worst-Fit.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment