[NSWI004] Assignment 5 : Heap question
Vojtech Horky
horky at d3s.mff.cuni.cz
Mon Jan 6 21:36:02 CET 2020
Hello.
Dne 06. 01. 20 v 21:02 Martin Gora napsal(a):
> we are unsure about a certain thing regarding heap. Should each address
> space has it is own heap or there should be somehow one global heap for
> all the address spaces. To put it into more context, when a creation of
> a new thread is conducted, it is given frames which become the adress
> space of the new thread. And it comes naturally that each adress space
> should has it is heap (e.g. calling heap_init in the new adress space).
There should be only one kernel heap. While it would be possible to
provide each AS with its own heap, it would not be very practical.
However, each userspace application must have its own heap and should
have no access to the kernel one directly.
Hope this helps,
- VH
More information about the NSWI004
mailing list