> Both components are duplicated its codes to run with a single processor
and
> multiprocessor.

Which duplication do you see? sched_prim.c is shared.


For example, I saw the duplicated code in pmap.h and pmap.c. Also in
kern/cpu_number.h (the code what I fixed), and many codes in kern/
directory.

I didn't see sched_prim.c, sorry.

is there any guide to understanding GNU Mach code? To learn about what do
each file.

Thanks, and sorry





El jue., 30 ago. 2018 a las 20:21, Samuel Thibault (<samuel.thiba...@gnu.org>)
escribió:

> Almudena Garcia, le jeu. 30 août 2018 20:12:07 +0200, a ecrit:
> > Both components are duplicated its codes to run with a single processor
> and
> > multiprocessor.
>
> Which duplication do you see? sched_prim.c is shared.
>
> > Also, there is another problem with drivers, what aren't thread-safe.
> Then, we
> > have to isolate these process to avoid concurrency problems
>
> Yes, this is a real concern. For the Linux drivers, the long-term goal
> is to move them to userland anyway. For Mach drivers, quite often they
> are not performance-sensitive, so big locks would be enough.
>
> Samuel
>

Reply via email to