PHP Dark Arts: Multi-Threading
re-cycledair.com
re-cycledair.com
fork() is a system level command that copies the current process wholesale, and then gives a pointer back to the parent process. This is very different than an interpreter managed green thread (ala ruby 1.8), or a true concurrent in-process threading model (like JVM threads).
Basically, processes tend to be heavier-weight, but more isolated and secure, where threads tend to be faster and can work with shared state without needing to use IPC mechanisms.
Quick googling found this discussion: http://stackoverflow.com/questions/807506/threads-vs-process...