PHP + mysql + multithread + test tool

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dbmethods

    PHP + mysql + multithread + test tool

    Could someone give a hint on how to do multithread programming with PHP
    scripting here?

    Thanks
  • Michael Austin

    #2
    Re: PHP + mysql + multithread + test tool

    dbmethods wrote:[color=blue]
    > Could someone give a hint on how to do multithread programming with PHP
    > scripting here?
    >
    > Thanks[/color]

    scripting languages by definition are single-threaded, so I must ask, can you
    give us a psuedo-code example of what you are trying to achieve. You want to
    yse the right tool to do the job and if you are trying to do multi-threading,
    PHP is probably not it...

    --
    Michael Austin.
    Consultant - Available.
    Donations welcomed. Http://www.firstdbasource.com/donations.html
    :)

    Comment

    • dbmethods

      #3
      Re: PHP + mysql + multithread + test tool

      Michael Austin wrote:[color=blue]
      > dbmethods wrote:
      >[color=green]
      >> Could someone give a hint on how to do multithread programming with
      >> PHP scripting here?[/color][/color]

      I like to have a web-base interface to test out database servers, so I
      thought PHP may do this easily. In this, I can specify the number of db
      connections I want to simulate. I know Java can do this, just wonder any
      PHP API available or I should look at perl interface.
      [color=blue][color=green]
      >>
      >> Thanks[/color]
      >
      >
      > scripting languages by definition are single-threaded, so I must ask,
      > can you give us a psuedo-code example of what you are trying to
      > achieve. You want to yse the right tool to do the job and if you are
      > trying to do multi-threading, PHP is probably not it...
      >[/color]

      Comment

      • Tim Tyler

        #4
        Re: PHP + mysql + multithread + test tool

        Michael Austin <maustin@firstd basource.com> wrote or quoted:[color=blue]
        > dbmethods wrote:[/color]
        [color=blue][color=green]
        > > Could someone give a hint on how to do multithread programming with PHP
        > > scripting here? [...][/color]
        >
        > scripting languages by definition are single-threaded [...][/color]



        ....appears to list many multi-threaded scripting languages.
        --
        __________
        |im |yler http://timtyler.org/ tim@tt1lock.org Remove lock to reply.

        Comment

        • Chris Hope

          #5
          Re: PHP + mysql + multithread + test tool

          dbmethods wrote:
          [color=blue][color=green][color=darkred]
          >>> Could someone give a hint on how to do multithread programming with
          >>> PHP scripting here?[/color][/color]
          >
          > I like to have a web-base interface to test out database servers, so I
          > thought PHP may do this easily. In this, I can specify the number of db
          > connections I want to simulate. I know Java can do this, just wonder any
          > PHP API available or I should look at perl interface.[/color]

          I've never been able to find a way to multi-thread PHP but you can fork sub
          processes (on a Unix box, not on Windows). However, this is not something
          you should do in a web server environment, only from the command line.

          More info here: http://www.electrictoolbox.com/artic...ocess-forking/

          --
          Chris Hope - The Electric Toolbox - http://www.electrictoolbox.com/

          Comment

          Working...