16 June

Difference between Contiguous Memory Allocation, Paging and Segmentation

A common question that comes to our mind is – What is the difference between Contiguous Memory allocation, Paging and Segmentation? We will understand this concept with an individual example, explaining each of the three concepts. Contiguous Memory Allocation In contiguous memory allocation the entire address space of the process is together. For example, if […]

13 June

Unsolved Questions on Memory Management

Try out these unsolved questions on memory management to check your conceptual knowledge. Q1. If the value of relocation register is 1000 and limit register is 700. What is the physical addresses for the logical addresses 1. 7002. 100 Q2. Given three free memory partitions of 150 KB, 50 KB , and 300 KB(in order). […]

09 June

How to define variables in shell script?

In this post we will learn how to define variables in shell script. A variable is used to store any value. The value can be an integer, float, character or even a string. There is not need to write the data type as is the case with C or C++ languages. For example x=1 y=2.5 […]

07 June

How to get OS version in C?

In this post we are going to solve a common question that dazzles most programmers – How to get OS version in C? When building an application sometimes a requirement is to check the operating system version. Programmers find it difficult to achieve this in C language. The solution to the above question is using […]

31 May

Deadlock Detection and Recovery

If a system neither uses deadlock prevention nor a deadlock avoidance strategy then it might enter into a deadlock. Thus, it becomes important to use deadlock detection and recovery policy. A Deadlock detection algorithm, determines whether the system is in deadlock state or not? If yes, then the system uses a deadlock recovery method to […]