Re: Re: how do you get to do multiple mysql queries concurrently?

From: Date: Sat, 26 Jan 2008 09:32:55 +0000
Subject: Re: Re: how do you get to do multiple mysql queries concurrently?
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.general 
Request: Send a blank email to php-general+get-268152@lists.php.net to get a copy of this message
Richard Lynch wrote: > Process forking has EVERYTHING to do with thread safety. > Whatever is going to go wrong in a threaded environment is going to > also go wrong when you fork the process, almost for sure. Forking a process and creating a thread are really two very different concepts (from a programming pov). In a threaded environment you often have e.g. semaphores and mutexes to coordinate access to shared data. When you've forked a process, you share data over IPC or similar. When you create a new thread, it has access to global scope variables in the main tread. It has access to shared heap storage. None of this applies to a forked process. /Per Jessen, Zürich

« previous php.general (#268152) next »