2 ms·
"They come in four variants: {single,multi}-producer {single,multi}-consumer." The article makes it sound a bit as if they were all created equal, while I thin
by weinzierl 1y ago
"They come in four variants: {single,multi}-producer {single,multi}-consumer."
The article makes it sound a bit as if they were all created equal, while I think only MPSC is really used widely. The others are all kind if niche, because usually we have better solutions for the problems they are suitable for.
- SUPERCILEX 1y agoFair point, though I'm not sure I agree. MPMC channels underpin pretty much every general task scheduler (take a peek inside tokio or rayon for example). And SPSCs are quite useful for designing custom pipelines. Though I agree that MPMC channels are silly.