Search Results

Search: Posts Made By: pnirmala
3,861
Posted By ahamed101
1. printf's are buffered, try giving a...
1. printf's are buffered, try giving a fflush(stdout) after the printf
2. 2nd printf will not print for obvious reason i.e. execl will replace the current process image with a new one.

It is...
Forum: Programming 12-24-2010
2,723
Posted By Corona688
What happens is this: // Without \n, this...
What happens is this:

// Without \n, this goes into a buffer and isn't printed yet.
printf("demo of fork");
// This creates a precise duplicate of the process -- including buffers.
// "demo of...
Forum: Programming 12-24-2010
2,723
Posted By anurag.singh
It is because printf is "buffered," meaning...
It is because printf is "buffered," meaning printf will group the output of a process together. While buffering the output for the parent process, the child may also use printf to print out some...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 03:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy