2020年5月20日

swoole进程之间通讯案例【三】

摘要: 1.进程1写取数据,主进程读数据写数据,进程2读取数据 $child1 = new swoole_process("children",false,true); //进程1写 function children($process){ static $index=0; while(true){ $in 阅读全文

posted @ 2020-05-20 17:01 孤灯引路人 阅读(384) 评论(0) 推荐(0) 编辑

swoole多进程通讯实例【二】

摘要: 代码案例思路分析 子进程执行代码执行满足某种条件子进程退出,父进程跟随退出 $child = new swoole_process("children",false,true); function children($process){ $index = 0; while(true){ $index 阅读全文

posted @ 2020-05-20 14:04 孤灯引路人 阅读(232) 评论(0) 推荐(0) 编辑

导航