LWN.net Logo

fork

fork

Posted Oct 3, 2012 17:47 UTC (Wed) by quotemstr (subscriber, #45331)
In reply to: fork by ballombe
Parent article: An Interview with Brian Kernighan (InformIT)

> The fork causes the child to get a snapshot of the data. The child displays the data graphically.

Shared memory.

> this does not make Windows a UNIX platform. The situation is increasingly similar on OS X.

Nobody cares about an OS being a "UNIX platform". People care about an OS being able to run useful software. Forking in a GUI program and doing GUI things in the child *just ain't useful*.


(Log in to post comments)

fork

Posted Oct 3, 2012 20:37 UTC (Wed) by dskoll (subscriber, #1630) [Link]

...Shared memory.

What part of "snapshot" is unclear?

fork

Posted Oct 4, 2012 15:28 UTC (Thu) by bronson (subscriber, #4806) [Link]

Wouldn't MAP_PRIVATE work for that? (curious, I've never tried)

fork

Posted Oct 4, 2012 19:23 UTC (Thu) by quotemstr (subscriber, #45331) [Link]

MAP_PRIVATE only works once. You can't use it to create multiple versioned snapshots.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds