Hello Rusty

Thanks for your reply :-) but I have a question

So in the case the child is doing computation while the father show progress
information and allow the user to stop the computation. I'm modifying the
memory of Gtk --> updating the value of progress bar and some labels and
status bar. Then is the memory duplicated?
If yes, how can I remove it fom the child, else (if no) then it is OK :-)

Thanks,

Best regards,
---
Jean-Christophe Berthon



----- Original Message -----
From: "Rusty Conover" <[EMAIL PROTECTED]>
To: "Jean-Christophe Berthon" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, December 17, 2001 10:39 AM
Subject: Re: A problem about programming with gtk+ in multiprocess.

Hi Jean-Christophe,

Freeing memory in the child process is not normally necessary since most
kernels (including Linux) employ the "copy on write" policy for the
child process address spaces.  This means that the memory actually isn't
copied from parent to child unless either process makes changes to the
memory, otherwise the child just reads directly from the parent process.

Hope that helps,

Rusty


_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to