Re: Simultaneus execution

From: Date: Sun, 29 Aug 2004 16:51:20 +0000
Subject: Re: Simultaneus execution
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-195083@lists.php.net to get a copy of this message
That was exactly what I thought, but I was thinking of some internal method, that would do the same thing as socket_set_noblock() for the process of execution. "Marek Kilimajer" <lists@kilimajer.net> wrote in message news:4131E95C.90408@kilimajer.net... > Andrew wrote: > > Now look - I want to make a test/debug engine, that will optimize the > > performance of each machine I make tests on - my idea is to run as many > > similar processes as possible in the tasklist of the OS. That would be the > > same as creating multiple child processes of a single script. The results > > will be - flooding the RAM, decrees CPU performance, that kind of stuff, but > > in the end I should have stats about how each machine performed in different > > disciplines - db querying (insert/select), file manipulations, etc. > > > > I was thinking to create child script (that I want executed more than once) > > and additional socket script, that should connect to the child script > > through HTTP and execute it. In the end the child script would send a > > message to the socket that would close it. The nice thing about sockets is > > that they shouldn't wait the previous socket to close, before next is > > opened, so what I would do is similar to opening, for example, 500 browser > > windows and load one same page. > > You can use sockets in nonblocking mode. I hope I got what you want to > achieve. > > See socket_set_nonblock()

« previous php.general (#195083) next »