i have got some questions.
int *pointer = (int *) malloc ( 12 );
malloc reserves 12 Bytes on my Heap. I have once heard that malloc always reserves one pagesize. Is this true?
i have got a process which contains of a stack and heap and code segment.
If my computer supports paging , for example the heap is divided into pages with a page size. what happens if malloc tries to reserve more memory on the heap and than the heap is too small. Do they really replace some sites.
i have got the same understanding problem in segmentation
thanks in advance.
sry for my terrible english but these questions are really important