V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
wujunze
V2EX  ›  PHP

php 多进程问题

  •  
  •   wujunze · Jan 29, 2016 · 4094 views
    This topic created in 3744 days ago, the information mentioned may be changed or developed.

    php 怎么起多进程跑任务脚本?

    17 replies    2016-02-02 15:23:47 +08:00
    sun522198558
        1
    sun522198558  
       Jan 29, 2016
    swoole
    fising
        2
    fising  
       Jan 29, 2016
    fork
    fising
        3
    fising  
       Jan 29, 2016
    手动多起几个任务、 swoole 都可以
    techmoe
        4
    techmoe  
       Jan 29, 2016 via Android
    pthread
    looyao
        5
    looyao  
       Jan 29, 2016   ❤️ 1
    写一个主进程来创建和监控 N 个子进程。
    pcntl 函数: pcntl_fork , pcntl_wait 。
    mahone3297
        6
    mahone3297  
       Jan 29, 2016
    louk78
        7
    louk78  
       Jan 29, 2016
    主线程创建多个子进程,然后进程间同步或异步
    LaughingMeMe
        8
    LaughingMeMe  
       Jan 29, 2016
    多开几个终端?
    Nixus
        9
    Nixus  
       Jan 29, 2016
    愿 Golang 与你同在!
    yao978318542
        10
    yao978318542  
       Jan 29, 2016
    http://www.cnblogs.com/yjf512/p/3217615.html
    这篇文章可能会帮到你
    rayyang88
        11
    rayyang88  
       Jan 29, 2016
    这么费劲,直接用 golang
    xiasix
        12
    xiasix  
       Jan 29, 2016
    最最最简单的 curl 啊
    wujunze
        13
    wujunze  
    OP
       Jan 30, 2016
    @Nixus golang 关 php 什么事?
    wujunze
        14
    wujunze  
    OP
       Jan 30, 2016
    @xiasix 我要跑任务脚本 不是并发调接口
    lujiajing1126
        15
    lujiajing1126  
       Jan 30, 2016
    pcntl
    elarity
        16
    elarity  
       Jan 30, 2016
    问了稳定起见,还是 swoole 吧,没有条件上 swoole ,就 pcntl
    cccoco123
        17
    cccoco123  
       Feb 2, 2016
    https://github.com/fucongcong/Group 可以跑定时脚本(基于 swoole )
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5583 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 59ms · UTC 03:09 · PVG 11:09 · LAX 20:09 · JFK 23:09
    ♥ Do have faith in what you're doing.