Program Main.c: // COMPILE : gcc main.c -o // EXECUTE : ./a.out #include <stdio.h> #include <stdlib.h> #include <unis...
Read More
11 Implement the C program in which main program accepts an integer array. Main program uses the FORK system call to create a new process called a child process. Parent process sorts an integer array and passes the sorted array to child process through the command line arguments of EXECVE system call. The child process uses EXECVE system call to load new program which display array in reverse order.
Program Parent.c: #include<stdio.h> #include<stdlib.h> #include <string.h> void bubbleSort(int arr[],int n) { ...
Read More
10 Program to Demonstrate EXECVE System Call in C
Program Main.c: #include <stddef.h> #include <unistd.h> void main() { char* arg_list[] = { "myprog", "...
Read More
Subscribe to:
Posts (Atom)