Home / GATE 2017-2018 / GATE CSE :: Discussion

Discussion :: GATE CSE

  1. A certain computation generates two arrays a and b such that a[i]=f(i) for 0 ≤ i < n and b[i] = g (a[i] )for 0 ≤ i < n. Suppose this computation is decomposed into two concurrent processes X and Y such that X computes the array a and Y computes the array b. The processes employ two binary semaphores R and S, both initialized to zero. The array a is shared by the two processes. The structures of the processes are shown below.
         
    Which one of the following represents the CORRECT implementations of ExitX and EntryY?
  2. A.
    .

    B.
    .

    C.
    .

    D.
    .

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    -NA-


Be The First To Comment