Skip to content

Tag Archives: Operating Systems-Process Management

In this post, we will see the Host Operating System versus Guest Operating System. But, before we get into the differences, it’s important to understand… Read More
This tutorial assumes that the reader has a basic knowledge of socket programming, i.e has a familiarity with basic server and client models. In the… Read More
Fork System Call: The fork system call is used for creating a new process, which is called the child process, which runs concurrently with the… Read More
In this article, we will discuss how to wake up a std::thread while it is sleeping. It is known that a thread can’t be exited… Read More
The producer-consumer problem is an example of a multi-process synchronization problem. The problem describes two processes, the producer and the consumer that shares a common… Read More
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

Start Your Coding Journey Now!