Process X: Process Y:
private i; private i;
for (i = 0; i < n; i++) { for (i = 0; i < n; i++) {
a[i] = f(i); EntryY(R, S);
ExitX(R, S); b[i] = g(a[i]);
} }Related Operating Systems PYQs
A scheduling algorithm assigns priority proportional to the waiting time of a process. Every process starts with priority zero (th…
In a Unix-like operating system, which of the following information is NOT stored inside an inode of a file?
In a 2-level paging system with a 32-bit virtual address, page size of 4 KB, and each page table entry requiring 4 bytes, how many…
A scheduling algorithm assigns priority proportional to the waiting time of a process. Every process starts with priority zero (th…
Three concurrent processes X,Y,Z execute three different code segments that access and update certain shared variables. Process X …
A shared variable x, initialized to zero, is operated on by four concurrent processes W,X,Y,Z as follows. Each of W and X reads x …
Free account benefits
Turn practice into measurable progress
Public PYQs and reference pages stay free. Sign in when you want GATEverse to remember what you studied and guide what to practise next.