6.4 Summary

Ru-Brd

The ACE Task framework allows developers to create and configure concurrent networked applications using powerful and extensible object-oriented designs. This framework provides the ACE_Task class that integrates multithreading with object-oriented programming and queueing. The queueing mechanism in ACE_Task uses the ACE_Message_Queue class to transfer messages between tasks efficiently . Since ACE_Task derives from the ACE_Service_Object in Section 5.2, it's easy to design services that can be configured dynamically to run as active objects and be dispatched by the ACE Reactor framework.

This chapter illustrated how the ACE Reactor framework can be combined with the ACE Task framework to implement variants of the Half-Sync/Half-Async pattern [POSA2]. The ACE Task framework classes can also be combined with the ACE_Future , ACE_Method_Request , and ACE_Activation_List classes to implement the Active Object pattern [POSA2]. A subset of the ACE_Message_Queue implementation is presented in Chapter 10 of C++NPv1.

Ru-Brd


C++ Network Programming
C++ Network Programming, Volume I: Mastering Complexity with ACE and Patterns
ISBN: 0201604647
EAN: 2147483647
Year: 2002
Pages: 65

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net