Affiliation:
1. Jet Propulsion Laboratory, Pasadena, CA
Abstract
We present a new pattern for implementing worker threads that is more flexible than traditional patterns. Traditional worker threads receive command messages with enumerated IDs that refer to pre-defined behaviors. In our new pattern, worker threads receive function pointers, and they have only one behavior: invoke the function. In this way, new behaviors can be passed in to the thread at run-time rather than having to be pre-defined. In addition, we present in-place consumption as an improvement for command message queues that reduces the number of times data needs to be copied.
Publisher
Association for Computing Machinery (ACM)
Reference3 articles.
1. JTC1.22.19768 ISO/IEC TR 19768 - C++ Library Extensions available from: http://www.open-std.org/jtc1/sc22/wg21/docs/projects#19768 JTC1.22.19768 ISO/IEC TR 19768 - C++ Library Extensions available from: http://www.open-std.org/jtc1/sc22/wg21/docs/projects#19768
Cited by
2 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献