Ru-Brd |
C HAPTER S YNOPSIS This chapter outlines the asynchronous I/O mechanisms available on today's popular OS platforms and then describes the design and use of the ACE Proactor framework. This framework implements the Proactor pattern [POSA2], which allows event-driven applications to efficiently demultiplex and dispatch service requests triggered by the completion of asynchronous I/O operations. This chapter shows how to enhance our client logging daemon to use a proactive model that (1) initiates I/O operations, (2) demultiplexes I/O completion events, and (3) dispatches those completion events to application-defined completion handlers that process the results of asynchronous I/O operations. |
Ru-Brd |