Huixxi commented on code in PR #157: URL: https://github.com/apache/brpc-website/pull/157#discussion_r1306923560
########## content/zh/docs/blogs/sourcecodes/execution_queue/index.md: ########## @@ -0,0 +1,550 @@ +--- +title: "bRPC源码解析·ExecutionQueue" +linkTitle: "bRPC源码解析·ExecutionQueue" +weight: 3 +date: 2023-08-18 +--- +(作者简介:KIDGINBROOK,在昆仑芯参与训练框架开发工作) + +## 简介 +ExecutionQueue是一个无锁的mpsc队列,主要逻辑其实就是brpc的client端发送数据时多线程向同一个fd写入数据,后来单独抽出来成为ExecutionQueue,基本功能如下: + +- 异步有序执行: 任务在另外一个单独的线程中执行, 并且执行顺序严格和提交顺序一致,任务提交是wait-free的 +- Multi Producer: 多个线程可以同时向一个ExecutionQueue提交任务 +- 支持cancel一个已经提交的任务 +- 支持stop Review Comment: 这个stop 是不是可以说的再详细一点,不然不知道stop的是什么 ########## content/zh/docs/blogs/sourcecodes/execution_queue/index.md: ########## @@ -0,0 +1,550 @@ +--- +title: "bRPC源码解析·ExecutionQueue" +linkTitle: "bRPC源码解析·ExecutionQueue" +weight: 3 +date: 2023-08-18 +--- +(作者简介:KIDGINBROOK,在昆仑芯参与训练框架开发工作) + +## 简介 +ExecutionQueue是一个无锁的mpsc队列,主要逻辑其实就是brpc的client端发送数据时多线程向同一个fd写入数据,后来单独抽出来成为ExecutionQueue,基本功能如下: Review Comment: mpsc建议加个括号注明一下英文全称(Multiple Producers, Single Consumer) ########## content/zh/docs/blogs/sourcecodes/execution_queue/index.md: ########## @@ -0,0 +1,550 @@ +--- +title: "bRPC源码解析·ExecutionQueue" +linkTitle: "bRPC源码解析·ExecutionQueue" +weight: 3 +date: 2023-08-18 +--- +(作者简介:KIDGINBROOK,在昆仑芯参与训练框架开发工作) + +## 简介 +ExecutionQueue是一个无锁的mpsc队列,主要逻辑其实就是brpc的client端发送数据时多线程向同一个fd写入数据,后来单独抽出来成为ExecutionQueue,基本功能如下: + +- 异步有序执行: 任务在另外一个单独的线程中执行, 并且执行顺序严格和提交顺序一致,任务提交是wait-free的 Review Comment: 任务提交是wait-free的 要不要放在下面13行?而且13行和12行要不要换个位置,先提交再消费这个样子。 ########## content/zh/docs/blogs/sourcecodes/execution_queue/index.md: ########## @@ -0,0 +1,550 @@ +--- +title: "bRPC源码解析·ExecutionQueue" +linkTitle: "bRPC源码解析·ExecutionQueue" +weight: 3 +date: 2023-08-18 +--- +(作者简介:KIDGINBROOK,在昆仑芯参与训练框架开发工作) + +## 简介 +ExecutionQueue是一个无锁的mpsc队列,主要逻辑其实就是brpc的client端发送数据时多线程向同一个fd写入数据,后来单独抽出来成为ExecutionQueue,基本功能如下: + +- 异步有序执行: 任务在另外一个单独的线程中执行, 并且执行顺序严格和提交顺序一致,任务提交是wait-free的 +- Multi Producer: 多个线程可以同时向一个ExecutionQueue提交任务 +- 支持cancel一个已经提交的任务 +- 支持stop Review Comment: 这个stop 是不是可以说的再详细一点,不然不知道stop的是什么 ########## content/zh/docs/blogs/sourcecodes/execution_queue/index.md: ########## @@ -0,0 +1,550 @@ +--- +title: "bRPC源码解析·ExecutionQueue" +linkTitle: "bRPC源码解析·ExecutionQueue" +weight: 3 +date: 2023-08-18 +--- +(作者简介:KIDGINBROOK,在昆仑芯参与训练框架开发工作) + +## 简介 +ExecutionQueue是一个无锁的mpsc队列,主要逻辑其实就是brpc的client端发送数据时多线程向同一个fd写入数据,后来单独抽出来成为ExecutionQueue,基本功能如下: + +- 异步有序执行: 任务在另外一个单独的线程中执行, 并且执行顺序严格和提交顺序一致,任务提交是wait-free的 Review Comment: 任务提交是wait-free的 要不要放在下面13行?而且13行和12行要不要换个位置,先提交再消费这个样子。 ########## content/zh/docs/blogs/sourcecodes/execution_queue/index.md: ########## @@ -0,0 +1,550 @@ +--- +title: "bRPC源码解析·ExecutionQueue" +linkTitle: "bRPC源码解析·ExecutionQueue" +weight: 3 +date: 2023-08-18 +--- +(作者简介:KIDGINBROOK,在昆仑芯参与训练框架开发工作) + +## 简介 +ExecutionQueue是一个无锁的mpsc队列,主要逻辑其实就是brpc的client端发送数据时多线程向同一个fd写入数据,后来单独抽出来成为ExecutionQueue,基本功能如下: Review Comment: mpsc建议加个括号注明一下英文全称(Multiple Producers, Single Consumer) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org