ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Operating Systems  >>  Unix  >>  Unix IPC
 
 


 

 
 Unix Commands interview questions  Unix Commands Interview Questions
 Unix Threads interview questions  Unix Threads Interview Questions
 Unix IPC interview questions  Unix IPC Interview Questions
 Unix Socket Programming interview questions  Unix Socket Programming Interview Questions
 Unix System Calls interview questions  Unix System Calls Interview Questions
 Unix General interview questions  Unix General Interview Questions
 Unix AllOther interview questions  Unix AllOther Interview Questions
Question
How to write the program on full-duplex communication on 
biderctional(e.g using two pipes)
 Question Submitted By :: Karthik Chowdary
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to write the program on full-duplex communication on biderctional(e.g using two pipes)
Answer
# 1
#include<stdio.h>
main()
{
int p1[2],p2[2],a;
char *msg1="hai";
char *msg2="infosys";
char *buff[7];
a=fork();
pipe[p1];
pipe[p2];
if(a==0)
{
write(p1[1],msg1,7);
sleep(5);
read(p2[0],buff,7);
printf("%s",buff);
}
else
{
read(p1[0],buff,7);
printf("%s",buff);
write(p2[1],msg2,7);
}
}
 
Is This Answer Correct ?    1 Yes 0 No
Karthik Chowdary
 

 
 
 
Other Unix IPC Interview Questions
 
  Question Asked @ Answers
 
How do you execute one program from within another?  3
In Unix inter process communication take place using?  1
what is the process id for kernell process  3
what about the initial process sequence while the system boots up?  1
About i-node numbers  1
what is the very first process created by kernell  4
How can you get or set an environment variable from a program?  2
How to write the program on full-duplex communication on biderctional(e.g using two pipes) Infosys1
What is a zombie?  9
Explain fork() system call? IBM9
Linking across directories?  2
About ln(linking)  1
What are the system calls used for process management?  3
What is IPC? What are the various schemes available?  4
what is the condition required for dead lock in unix sustem ?  1
What Happens when you execute a command?  2
What are the process states in Unix?  6
Max relaxable permisssion value with out giving write permission to others?  1
write About fork()?  1
Describe the initial process sequence while the system boots up?  3
 
For more Unix IPC Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com