skip to main content
article

A new pattern for flexible worker threads with in-place consumption message queues

Published: 01 April 2005 Publication History

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.

References

[1]
I. Barile: I/O Multiplexing & Scalable Socket Servers. Dr. Dobb's Journal, Vol. 29, No. 2, Feb 2004, pp. 42--5
[2]
JTC1.22.19768 ISO/IEC TR 19768 - C++ Library Extensions available from: http://www.open-std.org/jtc1/sc22/wg21/docs/projects#19768
[3]
M. Beck, H. Bohme, M. Dziadzka, U. Kunitz, R. Magnus, C. Schroter, D. Verworner: Linux Kernel Programming, 3rd Edition. Addison Wesley, London, 2002

Cited By

View all
  • (2006)A delay time-based peak load control for stable performanceProceedings of the 4th international conference on Parallel and Distributed Processing and Applications10.1007/11946441_33(329-340)Online publication date: 4-Dec-2006
  • (2006)An integration framework for trustworthy transactionsProceedings of the Third international conference on Autonomic and Trusted Computing10.1007/11839569_21(217-226)Online publication date: 3-Sep-2006

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM SIGOPS Operating Systems Review
ACM SIGOPS Operating Systems Review  Volume 39, Issue 2
April 2005
93 pages
ISSN:0163-5980
DOI:10.1145/1055218
Issue’s Table of Contents

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 01 April 2005
Published in SIGOPS Volume 39, Issue 2

Check for updates

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)3
  • Downloads (Last 6 weeks)0
Reflects downloads up to 05 Mar 2025

Other Metrics

Citations

Cited By

View all
  • (2006)A delay time-based peak load control for stable performanceProceedings of the 4th international conference on Parallel and Distributed Processing and Applications10.1007/11946441_33(329-340)Online publication date: 4-Dec-2006
  • (2006)An integration framework for trustworthy transactionsProceedings of the Third international conference on Autonomic and Trusted Computing10.1007/11839569_21(217-226)Online publication date: 3-Sep-2006

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media