.... 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: 13776

See Your Saved Posts Timeline

Attachments:

Replies to This Discussion

How to open the file in inbutu kindly guide me

 Kya bny ga ap logu ka ....

mera code run nh ho rha:(

software me code khud type krna pry ga? 

kio k code paste nahi ho raha edit text waly page me

mry pass aik method hai copy krne ka.

download idea file from ubuntu then copy paste in gedit.....

yr please help me program ko kasay run karna paray ga

Bahi abi bhhhhhhhht time hy itni jaldi run krne ki zrorat ni...

Program Run krny ka method

Attachments:

hahahahahahha.......

Run k liye. Compile k bad ./a.out command use kry

RSS

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 :::::::::::

Today Top Members 

Member of The Month

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

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