jinfeng333
V2EX  ›  PHP

php 多进程问题

  •  
  •   jinfeng333 · Jan 29, 2016 · 4585 views
    This topic created in 3942 days ago, the information mentioned may be changed or developed.

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

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