Skip to content

Tag Archives: Operating Systems-Process Management

1. Process: Process is an activity of executing a program. Process is of two types – User process and System process. Process control block controls… Read More
Process: A process is an activity of executing a program. Basically, it is a program under execution. Every process needs certain resources to complete its… Read More
In this article, we will see number of classical problems of synchronization as examples of a large class of concurrency-control problems. In our solutions to… Read More
Prerequisite: Zombie and Orphan Processes in C Zombie Process: A zombie process is a process that has completed execution but still has an entry in… Read More
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 <… Read More
A shared variable x, initialized to zero, is operated on by four concurrent processes W, X, Y, Z as follows. Each of the processes W… Read More
A shared variable x, initialized to zero, is operated on by four concurrent processes W, X, Y, Z as follows. Each of the processes W… Read More
Three concurrent processes X, Y, and Z execute three different code segments that access and update certain shared variables. Process X executes the P operation… Read More
The atomic fetch-and-set x, y instruction unconditionally sets the memory location x to 1 and fetches the old value of x in y without allowing… Read More
Consider the following code fragment: if (fork() == 0) { a = a + 5; printf("%d,%d\n", a, &a); } else { a = a –5;… Read More