Channel (programming): Difference between revisions

Content deleted Content added
m Task 70: Update syntaxhighlight tags - remove use of deprecated <source> tags
No edit summary
Line 6:
 
==Channel implementations==
 
Channels modeled after the CSP model are inherently [[Synchronization (computer science)|synchronous]]: a process waiting to receive an object from a channel will [[Blocking (computing)|block]] until the object is sent. This is also called [[rendezvous behaviour]].
Typical supported operations are presented below using the example of the [[libthread]] channel API.
Line 14 ⟶ 13:
 
===libthread channels===
 
The [[Multithreading (computer architecture)|Multithreading]] library, [[libthread]], which was first created for the operating system [[Plan 9 from Bell Labs|Plan 9]], offers inter-thread communication based on fixed-size channels.
 
===OCaml events===
 
The [[OCaml]] event module offers typed channels for synchronization. When the module's send and receive functions are called, they create corresponding send and receive events which can be synchronized.