How to use exit() System call

C program to show how to use exit system call. The function exit() is used to exit from a process (or to terminate a process). This works both in Linux or UNIX and Windows operating systems.

#include<stdio.h>
main()
{

How to make parent process wait till Completion of Child Process (Joining parent with child process)

How to make the parent process wait till the completion of execution of child process. The following C program makes the parent process to wait till the completion of its child process.

#include<stdio.h>
main()
{

How to make Child process an Orphan Process

C program in Linux or Unix to make a child process orphan:

Making child as orphan

#include<stdio.h>
main()
{

C Program to Show Process ID in Linux

This program is to show the process id (pid) in UNIX or Linx
The system call getpid() returns the process id of current process.

#include<stdio.h>
int main()
{
printf("\n Parent Process ID %d",getppid());
}

Inter Process Communication using Named Pipes - Chat Program in C

In this post, we will see a chat program using named pipes (fifo). Pipes are used for communication between processes. The named pipes are fifos. They enable two way communication unlike ordinary pipes. But they are half duplex, i.e. communication can take place only in one direction at a time. The program is in 3 parts: pipe_creation.c, leftTerminal.c and rightTerminal.c.

pipe_creation.c

#include<stdio.h>
void main()

Creating A Process in Linux (UNIX) - fork() Example Program

The system call fork() is used to  create a new process in UNIX based operating systems and Linux systems. The fork() system call creates a child process when called from a parent process. Unix will make an exact copy of the parent's address space and give it to the child. Therefore, the parent and child processes have separate address spaces. Here is a C program which uses the fork() system call to create a process during execution. The program is commented well for better understanding.

Program

/*The program (parent process) reads an array from the user.
It sorts it in descending order.

TATA DocoMo Balance theft - Balance deduction for no reason

TATA Docomo is one of the telecom operators in India which steals customers' money by activating unwanted (and unknown) services automatically. I just had heard some such news from Internet forums. But when i bought a TATA DoCoMo Sim and began to use it, i experienced it.

 On 09/02/2015, i got an SMS. the message was as follows:
Unlimited at 49 is activated at Rs29.41 for 10days.Bal:Rs1.01 at 09-Feb-15 09:02.To stop, Dial or SMS STOP to 155223(Free)


How to Fix Internal Errors 2501, 2502 or 2503 While Installing from .msi files in Windows

In Windows 8, you can see an error 2501, 2502 or 2503 when you try to install any application program or game from some .msi (Microsoft Installer) files. You can see the same error when you try uninstall some applications or games. The error message is like the one shown below:

How to solve or fix internal error 2501 2502 or 2503 appeared installing or uninstalling from an msi (.msi) (Microsoft Installer package) file MSI encountered unexpected error problem hot fix troubleshoot compatibility
Internal error 2502

Data Structures and Algorithms Previous Year Question Paper For BTech Computer Science and IT

Here i have uploaded the previous year (2014 MAY) question paper of DATA STRUCTURES AND ALGORITHMS (DS)  for Fourth semester for Computer Science and Engineering (CS or CSE) and Information Technology (IT) branches under MG university BTech course.

Course : B.Tech Engineering (degree)
University: MG university (Mahatma Gandhi university) Kottayam, Kerala
Department or branch: Computer Science and Engineering (CS or CSE) and Information Technology (IT)