Re: Re[2]: [PHP] Simultaneus execution
| From: | Andrew | Date: | Sun, 29 Aug 2004 14:13:52 +0000 |
| Subject: | Re: Re[2]: [PHP] Simultaneus execution | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-195075@lists.php.net to get a copy of this message | ||
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.
Any ideas are welcome.
Regards, Andrew
"Eugene" <php.subscribe@infosatgeomatica.com> wrote in message
news:95622789.20040829072101@infosatgeomatica.com...
> Maybe you can use classes in this case? I'm using them when I need to
> process the same object or to assign some simultaneous actions to
> many objects at the same time.
>
> Sunday, August 29, 2004, 6:40:42 AM, you wrote:
>
> > An example would be the execution of a function. Let's say that I can't
> > execute one same function twice, but how can I execute it again, before
the
> > first execution has completed?
>
> > Regards, Andrew
>
> > "Jason Wong" <php-general@gremlins.biz> wrote in message
> > news:200408291020.36317.php-general@gremlins.biz...
> >> On Sunday 29 August 2004 09:56, Andrew wrote:
> >>
> >> > Do anyone have an idea how to execute 2 different functions in the
same
> >> > moment, no matter if they're system or custom ones. For example, how
can
> > I
> >> > execute 2 different loops simultaneously?
> >>
> >> I'm curious at what you're trying to achieve. Could you elaborate?
> >>
> >> --
> >> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> >> Open Source Software Systems Integrators
> >> * Web Design & Hosting * Internet & Intranet Applications Development *
> >> ------------------------------------------
> >> Search the list archives before you post
> >> http://marc.theaimsgroup.com/?l=php-general
> >> ------------------------------------------
> >> /*
> >> QOTD:
> >> "What do you mean, you had the dog fixed? Just what made you
> >> think he was broken!"
> >> */
>
>
>
>
> --
> Best regards,
> Eugene
mailto:php.subscribe@infosatgeomatica.com