.... How to Find Your Subject Study Group & Join ....   .... Find Your Subject Study Group & Join ....  

We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Study Groups By Subject code Wise (Click Below on your university link & Join Your Subject Group)

[ + VU Study Groups Subject Code Wise ]  [ + COMSATS Virtual Campus Study Groups Subject Code Wise ]

Looking For Something at vustudents.ning.com?Search Here

Question           Marks 20


Problem Statement:


You are required to write a simple C language program to:


  1. Create a process using fork call
  2. Get and print status information of the running processes
  3. Use pipe call for inter-process communication between processes
  4. Terminate process
  5. Compile & run C program on Linux Operating system.


Detailed Description:


In the main() function, first of all you will establish a channel for processes to communicate through pipe system call. After successful creation of pipe, you will create child process through fork() system call.


In the child process, you will have to display your own student Id through the pipe or channel established between processes. In the parent process, you will have to display your own student name through the pipe or channel established between processes.


You will also print the status information of Parent and Child process by using user-defined function printInfo(). The status information includes Process Id and Parent Id in case of Child process and Process ID and Child Id in case of Parent process


Compilation & Execution of Program:


You will compile your file with your student ID. For example, if your student ID is BC123456789 then you will compile the code according to following screenshot. 

Share This With Friends......

How to Find Your Subject Study Group & Join.

Find Your Subject Study Group & Join.

+ Click Here To Join also Our facebook study Group.

This Content Originally Published by a member of VU Students.

+ Prohibited Content On Site + Report a violation + Report an Issue

Views: 13816

See Your Saved Posts Timeline


Replies to This Discussion

Please Discuss here about this assignment.Thanks

Our main purpose here discussion not just Solution

We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions. Read More>>



For Important Helping Material related to this subject (Solved MCQs, Short Notes, Solved past Papers, E-Books, FAQ,Short Questions Answers & more). You must view all the featured Discussion in this subject group.

For how you can view all the Featured discussions click on the Back to Subject Name Discussions link below the title of this Discussion & then under featured Discussion corner click on the view all link.

Or visit this link 

Click Here For Detail.


.•°How to Download past papers from study groups°•.


Please Click on the below link to see…

.... How to Find Your Subject Study Group & Join .... 


P.S:    Please always try to add the discussion in proper format title like “CS101 Assignment / GDB No 01 Solution & Discussion Due Date: ___________”

Dear Students Don’t wait for solution post your problems here and discuss ... after discussion a perfect solution will come in a result. So, Start it now, replies here give your comments according to your knowledge and understandings....

Its idea make it by ur self

#include <stdio.h>

#include <sys/types.h>

int main()


int wtmcodex[2];

pid_t pid;

pipe(wtmcodex);// creating pipe

pid=fork(); // child process


                printf("Student ID: WTMCodex123\n");

                printinfo("child Process");

                printf("Student Name: WTMCodex Media\n");

                close(wtmcodex[0]); // Termenating the child process.


    else {

                printinfo("Parent Process");



void printinfo(char pname[])



                printf("Process name: %s\n",pname);

                printf("My process ID : %d\n", getpid());

                printf("My parent's ID: %d\n", getppid());



From Here You Can Write Your Own Code To Complete Assignment.............

i have facing problm while downloading these application so plz help me jazakAllah

Follow the links given in assignment.... Sir explained every thing you just need to write code then u can learn...

Can you please tell me how i can open the code file into inbuntu

not working 

You have to write code then it will work......

can send code for this assignment. hafeezawan18@gmail.com

No without wasting time you should learn and start writing code in this way you can learn and understand the subject....

Brother please send the solution


Forum Categorizes

Job's & Careers (Latest Jobs)

Admissions (Latest Admissons)

Scholarship (Latest Scholarships)

Internship (Latest Internships)

VU Study

Other Universities/Colleges/Schools Help

    ::::::::::: More Categorizes :::::::::::

Member of The Month

© 2017   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service