-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
4 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,12 +6,12 @@ | |
use mix\process\TaskProcess; | ||
|
||
/** | ||
* 队列服务控制器 | ||
* 这是一个多进程守护进程的范例,进程模型为:生产者消费者模型 | ||
* 这是一个多进程守护进程的范例 | ||
* 进程模型为:生产者消费者模型 | ||
* 你可以自由选择是左进程当生产者还是右进程当生产者,本范例是左进程当生产者 | ||
* @author 刘健 <[email protected]> | ||
*/ | ||
class QueueController extends Controller | ||
class MultiController extends Controller | ||
{ | ||
|
||
// 启动服务 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,11 +5,10 @@ | |
use mix\console\Controller; | ||
|
||
/** | ||
* 默认控制器 | ||
* 这是一个单进程守护进程的范例 | ||
* @author 刘健 <[email protected]> | ||
*/ | ||
class IndexController extends Controller | ||
class SingleController extends Controller | ||
{ | ||
|
||
public function actionStart() | ||
|