Skip to main content

GATE CSE 1991Operating System › Process Synchronization & ConcurrencyVerified

GATE CSE 1991 PYQ: A given set of processes can be implemented by using only parbegin/parend statement, if the precedence graph…

A given set of processes can be implemented by using only parbegin/parend statement, if the precedence graph of these processes is ______

    Answer

    Properly nested (series-parallel) precedence graph

    Approach

    Reason about what a parbegin/parend pair can express structurally. A parbegin statement forks a set of statements that run concurrently, and the matching parend acts as a join at which every forked statement must have terminated. Because these constructs must be balanced and can themselves appear inside a forked branch, the concurrency they describe is always block-structured (like balanced brackets). Such block-structured concurrency generates exactly the precedence graphs that are properly nested, also called series-parallel (N-free) precedence graphs. Hence the blank is filled by "properly nested".

    parbegin/parend implement block-structured fork-join concurrency, whose nesting can generate only properly nested (series-parallel) precedence graphs. Hence the blank is "properly nested".

    Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.