Yes. With "duplicate", I referred to exists code files which has an
implementation to single core case and other implementation to the
multicore case.
Not the same exact code, simply the files has different algorithms to each
case.

El jue., 30 ago. 2018 a las 23:37, Samuel Thibault (<[email protected]>)
escribió:

> Almudena Garcia, le jeu. 30 août 2018 20:43:24 +0200, a ecrit:
> > If I execute "grep -R "NCPUS > 1", it returns this files ;)
>
> > kern/machine.c:#if    NCPUS > 1
> > kern/machine.c:#endif    /* NCPUS > 1 */
> > kern/machine.c:#if    NCPUS > 1
> > kern/machine.c:#else    /* NCPUS > 1 */
> > kern/machine.c:#endif /* NCPUS > 1 */
>
> That does not mean code duplication, but just special-casing, which is
> really not surprising for an OS.
>
> Samuel
>

Reply via email to