You are on page 1of 18

comenzar

Estructura del Sistema Informtico


Segunda Parte
Materia: Sistemas Operativos. Profesora: Pain Pintos. Instit. Terciario Simn Bolivar

ESQUEMA DE ESTRUCTURA BSICA


CPU interrupciones BUS
CONTROLADOR DE MEMORIA CONTROLADOR DE ALMAC. SEC. CONTROLADOR OTROS PERIF. E-S

DE SISTEMA
CONTROLADOR DE MONITOR CONTROLADOR DE MOUSE CONTROLADOR DE TECLADO

MEMORIA RAM

salir

siguiente

EJEMPLO

PROCESO INICIAL
MEMORIA ROM MEMORIA RAM

ENCENDIDO MQUINA

EJECUTA

PROGRAMA ARRANQUE

CARGA DEL DISCO FIJO A MEM. RAM

SISTEMA OPERATIVO

ASIGNA VALORES INICIALES A ASPECTOS SISTEMA INFORMTICO: Registros, controladores, memoria ram.

EJECUTA PRIMER PROCESO

CARGAR EN MEMORIA RAM SISTEMA OPERATIVO

ESPERA A QUE OCURRA ALGN SUCESO

anterior

siguiente

INTERRUPCIONES LLAMADAS AL SISTEMA


SUCESOS: POR HARDWARE: interrupciones. CPU POR SOFTWARE: Llamadas al sistema o trampas

MEMORIA RAM PROGRAMA DE APLICACIN

SISTEMA OPERATIVO
BUS DE SISTEMA

Preserva estado CPU; Atiende el suceso

DISP. E/S

anterior

salir

PROCESAMIENTO DE EVENTOS

anterior

siguiente

LLAMADAS AL SISTEMA

Pueden colisionar ms de un Requerimiento al dispositivo.

El sistema operativo administra el Uso del dispositivo.

anterior

DEFINICION

PROCESO DE INTERRUPCIONES
MEMORIA RAM TABLA DE DISPOSITIVOS

VECTOR DE INTERRUPCIONES

SISTEMA OPERATIVO

CPU

CONTROLADOR DISP. E/S 1

BUS DE SISTEMA
CONTROLADOR DISP. E/S 1

DISP. E/S 1

DISP. E/S 2

anterior

salir

PROCESAMIENTO DE LA INTERRUPCIN

VOLVER

siguiente

OPCIONES DE MANEJO INTERRUPCIN E/S

anterior

VOLVER

VECTOR DE INTERRUPCIONES
Tabla de punteros a rutinas de interrupciones, almacenada en las primeras direcciones de la Memoria Ram (memoria baja). DISP. 1
Sistema operativo

VECTOR DE INTERRUPCIONES
NRO. DISP= 1 DIRECCIN RUTINA DISPOSIT. (controlador disp 1) DIRECCIN DE RUTINA DISP. (controlador disp 2) DIRECCIN DE RUTINA DISP. (controlador disp 3)

DISP. 2

NRO. DISP.= 2 NRO. DISP. =3

DISP. 3

VOLVER

TABLA DE DISPOSITIVOS
Tabla almacenada en Memoria Ram que indica el estado para cada diapositivo del sistema informtico. Cada entrada indica TIPO DISP, DIRECCIN Y ESTADO (apagado, ocioso, ocupado)

Impresora 1

Sistema operativo

TABLA ESTADO DISPOSITIVOS


TIPO DISP= 1 DIRECCIN (controlador) DIRECCIN (controlador) DIRECCIN (controlador) ESTADO ocupado ESTADO ocioso ESTADO ocupado

Monitor 2

I 2

I 3

TIPO DISP.= 2 TIPO. DISP. =3

G 1
Cola de espera o lista de solicitudes

Disco Fijo 3

VOLVER

CONTROLADOR DE DISPOSITIVOS
DEFINICIN Prog. de sistema que permite al S.O. controlar los perifricos CARACTERSTICAS:
Cada perifrico tiene su propio controlador. Cada controlador tiene su buffer local. Cada controlador tiene registros en los que va almacenando datos a procesar, estado del dispositivo, etc.
VOLVER

EJEMPLO DE ARQUITECTURA

VOLVER

ACCESO DIRECTO A MEMORIA (DMA)


El DMA se utiliza para los perifricos de alta velocidad. El controlador del dispositivo transfiere un bloque completo de datos directamente de su propio buffer a la memoria (y viceversa) sin necesidad de intervencin de la CPU.

(INTERRUPCIN POR CADA BYTE)

CPU

MEMORIA RAM
CONTROLADOR DE E/S

PERIFRICO E/S

BUFFER CONTROLADOR

DMA
(INTERRUPCIN POR CADA BLOQUE)

VOLVER

siguiente

E/S MAPEADA EN MEMORIA


CONTROLADOR DISPOS. 1 MEMORIA RAM

DISPOS. 1

BUFFER CONTROLADOR DISPOS. 1 REGISTROS DISPOSITIVO 1

CPU
PUERTO DE E/S 1

DATO

DATO
SISTEMA OPERATIVO

Se apartan direcciones de memoria y se establece correspondencia entre stas y los reg. De dispositivo. De esta forma las lecturas de y escrituras en estas direcciones de memoria hacen que se transfieran datos desde y hacia los registros del dispositivo.

anterior

VOLVER

siguiente

MTODOS DE TRATAMIENTO E/S: E/S PROGRAMADA

CONTROLADOR DISPOS. 1

CPU
REGISTROS DISPOSITIVO 1

DISPOS. 1

DATO
p a
BIT DE ESTADO

Proceso de Escrutinio permanente

anterior

VOLVER

siguiente

MTODOS DE TRATAMIENTO E/S: E/S CONTROLADA POR INTERRUPCIONES

CONTROLADOR DISPOS. 1

CPU
REGISTROS DISPOSITIVO 1

DISPOS. 1

DATO

Tratamiento de Interrupciones Deriva S.O.

anterior

VOLVER

LLAMADA AL SISTEMA
Llamada al sistema o System Call, en ingls, es el mecanismo usado por un programa aplicativo para solicitar un servicio al Sistema Operativo. Dado que el hardware puede ser compartido por mltiples procesos, el acceso a los recursos (por ej. Perifricos) debe ser administrado para garantizar su correcto uso y evitar problemas de seguridad (si procesos malintencionados desean acceder a recursos asignados a otros procesos). Por estas razones, en los sistemas duales, el acceso al ambiente fsico es manejado exclusivamente por el Sistema Operativo. La nica forma de acceder al hardware es a travs de las llamadas al sistema, que estn perfectamente definidas.

VOLVER

You might also like