Give the output of the following program
main()
{int ret;
ret=fork();ret=fork();ret=fork();ret=fork();
if(!ret)
printf("sun");
else
printf("solaris");
Answer Posted / rojoco
Imagining that the correct headers were included and the
closing bracket for the main function is added, it'll print
sun 8 times and solaris 8 times. You won't know the order
that they're printed in, it depends on the kernel scheduler
as to which process is run first.
| Is This Answer Correct ? | 11 Yes | 1 No |
Post New Answer View All Answers
In what scenario does the Logical file and Physical file being used?
What are stl algorithms?
What is a standard template library (stl)? What are the various types of stl containers?
Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.
how to use C++?
please visit this site you'll find my question this is my homework please answer it if you can http://easyscience.org/ib/lofiversion/index.php/t36168.html
What is the stl, standard template library?
Is string part of stl?
help me i need a c++ program which takes sequesnce of characters and outputed sequence of their token taypes, work same compiler in lexical analysis phase
What is stl in c++ with example?
How connect plc and pc through software
write a program to convert a decimal number in to its equivalent binary number?
How do I convert a stl file?
How stl is different from the c++ standard library?
What are the symptoms of stl?