process.h Header File in C Programming

‘process.h’ is a header file which includes macros and declarations. These are especially used during work with thread and processes. There is no standard for process.h functions. They depend on compiler which we use.

Some of the standard member functions of process.h header files are,
__________________________________________________________
Function Name	Description
execle -	It loads & executes new child process by 
		placing it in memory previously occupied by
		the parent process.
spawnv -	Parameters are passed as an array of pointers. 
		It loads & executes new child process.
getpid -	It returns the process identifier.
execlp -	It loads & executes a new child process by 
		placing it in memory previously occupied by 
		the parent process.
__________________________________________________________

Program :

/*  Program to demonstrate process.h header file working.
Creation Date : 06 Nov 2010 07:43:10 PM
Author : www.technoexam.com [Technowell, Sangli] */

#include <stdio.h>
#include <conio.h>
#include <process.h>

int main(void)
{
	clrscr();
	// under DOS PSP segment
	printf("\n\t Program's process identification");
	printf(" number  is : %X",getpid());
	getch();
	return 0;
}

Output :

Program's process identification number (PID) number is : 8E01_

Leave A Comment

Your email address will not be published. Required fields are marked *