On Wednesday, 17 June 2015 at 17:10:40 UTC, ketmar wrote:
On Mon, 15 Jun 2015 18:19:06 -0400, bitwise wrote:

When memory is never cleaned up, can't that make fork() really slow? Doesn't fork copy all memory of the entire process?

on any decent OS fork(2) does CoW (copy-on-writing), so forking is lightning fast. also, any decent OS knows about "fork-and-replace" pattern, so it throws away old process pages on replacing.

"lightning fast" for some value of "lightning fast".

Reply via email to