Doh! Stupid Programming Mistakes <humor>
fozz at iodynamics.com
Thu Oct 19 12:45:52 MDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Alex Esplin wrote:
> Now that I know what fork() does, what kind of situations would you
> want to use it in? I can see this as being really useful, but I don't
> quite have my head wrapped around it yet.
Unix is highly dependent on fork() to do just about anything. When you make a
system() call in a program, it fork()'s and then exec()'s the other program.
Multitasking is all about the fork starting with init (PID 1).
fozz at iodynamics.com is Doran L. Barton, president/CTO, Iodynamics LLC
Iodynamics: IT and Web services by Linux/Open Source specialists
"Warning: May cause drowsiness."
-- Seen on a label of sleep aid medication
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the PLUG