brk Questions
5
Solved
int brk(void *end_data_segment);
void *sbrk(intptr_t increment);
Calling sbrk() with an increment of
0
can be used to find the current location of the program break.
What is program break?...
Hopfinger asked 14/6, 2011 at 1:27
5
Typical implementations of malloc use brk/sbrk as the primary means of claiming memory from the OS. However, they also use mmap to get chunks for large allocations. Is there a real benefit to using...
2
Solved
While I know what the Unix system call brk and function sbrk do, I have no idea what they stand for. Can anyone enlighten me?
1
Solved
1
Solved
I'm trying to understand the sbrk() function.
From what I know:
sbrk(0) returns the current address of the break and doesn't increment it.
sbrk(size) increments the address of the break by size b...
4
I am trying to dynamically allocate memory into the heap and then assign values in those memory addresses. I understand how to allocate the memory but how would I assign for example the value in a ...
Gefen asked 23/3, 2014 at 2:59
8
Solved
According to Linux programmers manual:
brk() and sbrk() change the location of the program break, which
defines the end of the process's data segment.
What does the data segment mean over here? I...
Shechem asked 8/8, 2011 at 20:57
4
Solved
I was thinking about how the Linux kernel implements system calls and I was wondering if someone could give me a high level view of how sbrk/brk work?
I've reviewed the kernel code, but there is j...
Joan asked 15/6, 2009 at 17:50
1
© 2022 - 2024 — McMap. All rights reserved.