Skip to content

adhamhesham97/memory-allocation

Repository files navigation

memory-allocation

We have created a struct location to deal with each segment a location having its own process name, segment name, base & limit values.

struct location { QString process = ""; QString segment = ""; int base; int limit; int End() { return base + limit; } int Size() { return limit; } };

  • The first window takes the memory size and the holes base & limit values.
    m3
  • Then, after pressing on "DONE" button.
    -> this will redirect us to the window where the memory will be drawn & we can allocate and deallocate any processes.
    m1
  • You have to choose the Allocation Method (Best-Fit or First-Fit), after entering the data of the process and its segments the process will be allocated directly and showed in the memory layout & also it will be showed in the tree view and by selecting it, its internal data will appear in the segment table.
    -> First-Fit allocation method is used here. m4 -> Best-Fit is used here.
    m5
  • To deallocate a process by all its segments, you only have to select the process from the tree view and press on "Deallocate" button.
    m6

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors