Thanks for your help zalezog, but...
But memblocks[0] = count = MAXMEMORY - 1 = 10,000 - 1 = 9,999, which is not INFINITY (Infinity has an extra digit).
I don't understand what you mean...
Type: Posts; User: RommelTJ
Thanks for your help zalezog, but...
But memblocks[0] = count = MAXMEMORY - 1 = 10,000 - 1 = 9,999, which is not INFINITY (Infinity has an extra digit).
I don't understand what you mean...
Because I am trying to find the smallest element in the array. Is there a better way of doing that?
Hi everybody. I'm trying to simulate memory allocation using a best-fit strategy and I can't get rid of this annoying bug. Can you help me?
Here is my overall simplified strategy:
Create an...
I'm trying to simulate simple memory allocation for processes using a First-Fit strategy. I have an array called memoryArray of 0's and 1's, where 0=free memory and 1=used memory. I also have a...
@Adak: Thanks. Your example showed me how to get it working.
Should I post the working code? It's not very elegant, but I wonder if that would be the polite thing to do.
Can you provide me with some sample code or a link where I can read on how to implement an array of a struct?
I am working on a Binary Heap implementation of a Priority Queue. So far, I have the queue working for a single element. Here is some of the code:
[...headers and constants...]
struct...