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" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> >> 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:[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to