GATE / CS ARCHIVE

GATE CSE 1991 / QUESTION 1(xii)

Precedence graphs expressible by nested fork/join

Operating Systems · Synchronization & Concurrency · Full GATE CSE 1991 paper

GATE 1991, Q1(xii) 2 marks · Other
Report issue

Synchronization & Concurrency

Question 1(xii), GATE 1991: What property must a process precedence graph have to be expressed using only properly nested parbegin/parend and sequential composition?
Question 1(xii), GATE 1991: What property must a process precedence graph have to be expressed using only properly nested parbegin/parend and sequential composition?
Tap to enlarge
Answer & solution

Answer: It must admit a series-parallel decomposition (no official key was published)

A sequential composition places every process in one component before every process in the next. A parbegin/parend composition runs its child components independently and joins after all finish. Starting from individual processes and repeatedly applying these two constructions yields the series-parallel class of precedence structures. Conversely, its recursive decomposition directly supplies a nested program. An arbitrary acyclic graph can contain cross-dependencies that cannot be represented by these nested constructs alone without extra synchronization or unnecessary ordering. The statement concerns the precedence relation, allowing omission of redundant transitive edges.

Original paper, page 2