Hi Reshma,

snipped
> > >
> > > > +       fflush(stdout);
> > >
> > > Why is fflush used here and  in below other places?
> > To ensure the stdout content is flushed out. We had used similar approach 
> > to '
> > examples/l2fwd/main.c'
> >
> 
> Can you elaborate more?  What problem do you see if you don't use this?
Sure, when running on multi cores (Xeon, corei7 and denverton alike) depending 
upon the isolate parameters and other application, printf from lcores either 
comes as partial or misaligned. Making use 'fflush' ensured in both apps and 
examples to be flushed out. 

> 
> Thanks,
> Reshma

Reply via email to