Multiple ChoiceBeginner 45s
Pipe-and-filter: filter contract
In a pipe-and-filter architecture, what is the key constraint that makes filters composable?
Options
- 1Filters must share a global mutable state. Each stage passes results to the next through it.
- 2Filters must run on separate threads. A downstream stage never blocks an upstream one.
- 3All filters must use the same internal data type. Their outputs can then share a common channel.
- 4Each filter reads from its input and writes to its output without knowing neighbors
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.