13.07.2015 Views

de un proceso

de un proceso

de un proceso

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Sincronización entre llamadas en MP• Sincronización entre llamadas concurrentes:– spinlocks + int SW <strong>de</strong> planificación inhibida si núcleo expulsivocrear_<strong>proceso</strong>(...) {nivel_ant=spin_lock_interrupcion(cerrojo_tabla_proc,NIVEL_INT_SW_PLANIFICACION);pos=BuscarBCPLibre();tabla_<strong>proceso</strong>s[pos].libre = false;spin_<strong>un</strong>lock_interrupcion(cerrojo_tabla_proc, nivel_ant); }– Granularidad <strong>de</strong> spinlock: paralelismo vs. sobrecarga– Si s. crítica larga o con bloqueo: semáforos• Atomicidad <strong>de</strong> semáforos gracias a spinlocks• Granularidad <strong>de</strong> semáforosDiseño <strong>de</strong> Sistemas Operativos 111 Fernando Pérez Costoya (2008)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!