Title
A new pattern for flexible worker threads with in-place consumption message queues
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.
Year
DOI
Venue
2005
10.1145/1055218.1055224
Operating Systems Review
Keywords
Field
DocType
pre-defined behavior,flexible worker thread,traditional pattern,function pointer,new pattern,traditional worker thread,enumerated ids,command message queue,command message,new behavior,worker thread,in-place consumption message queue,receiver function
Pointer (computer programming),Function pointer,Computer science,Scheduling (computing),Queue,Real-time computing,Thread (computing),Message queue,Hyper-threading,Operating system,Linux kernel
Journal
Volume
Issue
Citations 
39
2
4
PageRank 
References 
Authors
0.49
0
3
Name
Order
Citations
PageRank
Robert Steinke140.49
Micah Clark2173.79
Elihu McMahon340.49