A certain computation generates two arrays a and b such that a[i] = f(i) for 0 i 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. Process X: private i; for (i=0; i Process Y: private i; for (i=0; i Which one of the following represents the CORRECT implementations of ExitX and EntryY ?
Topic-wise GATE CS PYQs with verified steps
