Next Fit Memory allocation help needed


I am writing a program that does all the memory allocation fits. So far I've done First Fit, Best fit (both static) and worst fit(dynamic). I am completely stuck with Next fit since I could not find any algorithms of Next fit online or clear definitions.

A definition of Next fit I found says: "'Next-fit' allocation differs from first-fit in that a first-fit allocator commences its search for free space at a fixed end of memory, whereas a next-fit allocator commences its search wherever it previously stopped searching."

What my understanding of Next fit is, it starts allocating jobs where first-fit last allocated job was in memory -???-


I can provide the code I have so far if needed.
Topic archived. No new replies allowed.