Intra-Process Transport and User Events
In addition to the three types of Rendezvous events, programs can implement user events using the intra-process transport.
Consider these properties of a message that serves as a user event, sent on an intra-process transport:
• | Process-local. The user event message remains within the process. |
• | Thread-to-thread. A user event message can be sent to a specific thread (or set of threads), because the message event appears in a specific event queue. (That is, only a thread that dispatches that queue can receive the message event.) |
Programs can exploit these properties to build a thread-to-thread intra-process communication mechanism. Consider an example program that contains one thread that controls a fax hardware device. The other threads send messages to the fax thread, which processes them by sending faxes.
See Also
Intra-Process Transport in
Intra-Process Transport in