LINUX programming

Moderators: ITA
Number of threads: 1339
Number of posts: 2924

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
processes and resources Posted by But Why on 23 Apr 2008 at 8:52 AM
Hey every one if we spawn a child process and that child process allocates some memory dynamically from the heap and then we kill that child process without letting it free up the resources what will happen will the resources be freed automatically by the OS. Or they want be freed until the parent is still running??
Report
Re: processes and resources Posted by VBNETDude on 24 Apr 2008 at 9:33 AM
: Hey every one if we spawn a child process and that child process
: allocates some memory dynamically from the heap and then we kill
: that child process without letting it free up the resources what
: will happen will the resources be freed automatically by the OS. Or
: they want be freed until the parent is still running??
:
I don't think it would be cleared. Not until the parent is closed anyhow. I don't know.
Report
Re: processes and resources Posted by But Why on 24 Apr 2008 at 10:14 AM
: : Hey every one if we spawn a child process and that child process
: : allocates some memory dynamically from the heap and then we kill
: : that child process without letting it free up the resources what
: : will happen will the resources be freed automatically by the OS. Or
: : they want be freed until the parent is still running??
: :
: I don't think it would be cleared. Not until the parent is closed
: anyhow. I don't know.
:


Thanks Bud but guess will have ta try it out i was thinking that some 1 might have already tried it out and can fill me in :)
Actually due to paucity of time i decided to post here.... lets C may be will do it on this weekend and then will let every 1 know right here :)



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.