You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Intent:** The Half-Sync/Half-Async pattern decouples synchronous I/O from asynchronous I/O in a system to simplify concurrent programming effort without degrading execution efficiency.
717
720
721
+

722
+
723
+
**Applicability:** Use Half-Sync/Half-Async pattern when
724
+
* A system possesses following characteristics:
725
+
* System must perform tasks in response to external events that occur asynchronously, like hardware interrupts in OS
726
+
* It is inefficient to dedicate separate thread of control to perform synchronous I/O for each external source of event
727
+
* The higher level tasks in the system can be simplified significantly if I/O is performed synchronously.
728
+
* One or more tasks in a system must run in a single thread of control, while other tasks may benefit from multi-threading.
0 commit comments