Skip to content

Tag Archives: system-programming

This article describes a Client and Server setup where a Client connects, sends a string to server and the server shows the original string and… Read More
Inter Process Communication through shared memory is a concept where two or more process can access the common memory. And communication is done via this… Read More
Prerequisite : Inter Process Communication A message queue is a linked list of messages stored within the kernel and identified by a message queue identifier. A… Read More
fork() system call is used to create a process generally known as child process and the process that created it is known as parent process.… Read More
Create a child process and display process id of both parent and child process. Fork system call use for creates a new process, which is… Read More
Prerequisite – fork() in C, sorting in fork() Problem statement – Write a program to search the key element in parent process and print the… Read More
Prerequisite – Introduction of fork(), sorting algorithms Problem statement – Write a program to sort the numbers in parent process and print the unsorted numbers… Read More
Prerequisite – Introduction of fork, getpid() and getppid() Problem statement – Write a program to create one parent with three child using fork() function where… Read More
Prerequisite : Multithreading Syntax : // to get size of stack int pthread_attr_getstacksize(const pthread_attr_t* restrict attr,                                           size_t* restrict stacksize);    // to set size of… Read More
Segmentation fault(SIGSEGV) and Bus error(SIGBUS) are signals generated when serious program error is detected by the operating system and there is no way the program… Read More
In C, exit() terminates the calling process without executing the rest code which is after the exit() function. Example:- // C program to illustrate exit()… Read More
Write a program to find sum of even numbers in parent process and sum of odd numbers in child process. Examples: Input : 1, 2,… Read More
To know more about what a shell is, click here. We all use the built in terminal window in Linux distributions like Ubuntu, Fedora, etc. But… Read More
Both getppid() and getpid() are inbuilt functions defined in unistd.h library. getppid() : returns the process ID of the parent of the calling process. If… Read More
Every application(program) comes into execution through means of process, process is a running instance of a program. Processes are created through different system calls, most… Read More