Search Results

Search: Posts Made By: karthiktceit
Forum: Programming 09-01-2009
8,971
Posted By karthiktceit
Then I undertand that memory leak is meaningful...
Then I undertand that memory leak is meaningful as long as the process that caused it is alive. Once the process that caused it dies then all the leaked memory will made available to the OS memory...
Forum: Programming 08-31-2009
8,971
Posted By karthiktceit
No the output does not change at all. But many...
No the output does not change at all. But many senior professionals in my office say that memleak is a serious issue. If you dont free it, it will cause fatal problems during execution. Can anyone...
Forum: Programming 08-31-2009
8,971
Posted By karthiktceit
You mean to say that there wont be any problem at...
You mean to say that there wont be any problem at any point of time if there is memory leak in my code. right?
Forum: Programming 08-31-2009
8,971
Posted By karthiktceit
I am using the size command sample output :...
I am using the size command

sample output :
[root@cheuxsie82 cs]# size a.out
text data bss dec hex filename
1143 272 4 1419 58b a.out
Forum: Programming 08-31-2009
8,971
Posted By karthiktceit
This sounds very logical, But still the OS can...
This sounds very logical, But still the OS can know which part of Heap it has allocated to which process, then why cant the OS take care of freeing it when the process is getting killed. By the...
Forum: Programming 08-31-2009
8,971
Posted By karthiktceit
I understand that, But any part of the process's...
I understand that, But any part of the process's address space being leaked leads to a memory leak. But stack, data and text segments' memory is not at all leaked. Beacuse they are freed by the OS...
Forum: Programming 08-31-2009
8,971
Posted By karthiktceit
I am using fedora 6 But y u say "All of a...
I am using fedora 6
But y u say
"All of a process allocated memory should be made available after it dies otherwise the OS will refuse to launch after some period of time"

After a process dies...
Forum: Programming 08-31-2009
8,971
Posted By karthiktceit
Why memory allocated through malloc should be freed ?
Actually for a process to run it needs text, stack , heap and data segments. All these find a place in the physical memory.
Out of these 4 only heap does exist after the termination of the process...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 02:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy