I've read the part of "Modern Operating Systems" by Tanenbaum about segmentation and got left with some questions:
How does the operating system manage the free memory space? For example my program needs another segment, so the OS trys to allocate memory, but how does it know the free or not free segmented parts? Does it look up every GDT and LDT entry to create some sort of memory map?
Thanks for some clarification!