how to run multi thread in php ?

Discussion in 'PHP' started by ramysarwat, Sep 19, 2010.

  1. #1
    how to run multi thread in php ?
     
    ramysarwat, Sep 19, 2010 IP
  2. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #2
    kmap, Sep 19, 2010 IP
  3. qualitypoint

    qualitypoint Peon

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It seems it is not advisable to use multi-threading as it is not built-in with php.
     
    qualitypoint, Sep 19, 2010 IP
  4. sunlcik

    sunlcik Peon

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    sunlcik, Sep 19, 2010 IP
  5. ivan.kristianto

    ivan.kristianto Active Member

    Messages:
    136
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #5
    PHP process run on single thread natively. CMIIW.
    So it's better if you just use single thread and queuing your job with cron or something else to process your thing.
     
    ivan.kristianto, Sep 20, 2010 IP