✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Channel of integer ch | |
producer | consumer |
integer x ← 0 p1: while x < 2 p2: ch <= x p3: print(“a”) p4: x ← x + 1 | integer y ← 0 q1: while y < 2 q2: ch => y q3: print(“b”) |