Skip to content

Tag Archives: system-programming

Prerequisite : fork() in C. So when we do a fork() what are the sections the two process actually share ? Is the heap memory… Read More
Write a Unix C program using the fork() system call that generates the factorial and gives a sequence of series like 1, 2, 6, 24,… Read More
How to write a C program to print “Hello world” without main() function? At first, it seems impractical to execute a program without a main()… Read More
Prerequisites: fork() in C, Zombie Process Zombie state : When a process is created in UNIX using fork() system call, the address space of the… Read More
Write Linux C program to create two processes P1 and P2. P1 takes a string and passes it to P2. P2 concatenates the received string… Read More
Given a number ‘n’ and a n numbers, sort the numbers using Concurrent Merge Sort. (Hint: Try to use shmget, shmat system calls). Part1: The… Read More
Problem: Given 2 processes i and j, you need to write a program that can guarantee mutual exclusion between the two without any additional hardware… Read More
Prerequisite: fork() in C Zombie Process: A process which has finished the execution but still has entry in the process table to report to its… Read More
Function interposition is the concept of replacing calls to functions in dynamic libraries with calls to user-defined wrappers. What are applications? We can count number… Read More
C is a mid-level language and it needs a compiler to convert it into an executable code so that the program can be run on… Read More
Fork system call is used for creating a new process, which is called child process, which runs concurrently with the process that makes the fork()… Read More
What is a Thread? A thread is a single sequence stream within in a process. Because threads have some of the properties of processes, they… Read More
We have covered basic information about shared libraries in the previous post. In the current article we will learn how to create shared libraries on… Read More
This article is not for those algo geeks. If you are interested in systems related stuff, just read on… Shared libraries are useful in sharing… Read More
When a C program is compiled, the compiler generates object code. After generating the object code, the compiler also invokes linker. One of the main… Read More