1 / 12

Ayudantía 2: El Sistema Operativo

UTFSM - Sistemas Operativos. Ayudantía 2: El Sistema Operativo. Conceptos importantes. Procesos / servicios Tareas: Set de instrucciones cargadas en memoria. Interfaces Llamadas a sistema. Parte del sistema operativo. Nos interesa tener más aplicaciones que las que trae el SO.

Télécharger la présentation

Ayudantía 2: El Sistema Operativo

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. UTFSM - Sistemas Operativos Ayudantía 2: El Sistema Operativo

  2. Conceptos importantes • Procesos / servicios • Tareas: Set de instrucciones cargadas en memoria. • Interfaces • Llamadas a sistema Ayudantía Sistemas Operativos - http://villaseca.wordpress.com

  3. Parte del sistema operativo • Nos interesa tener más aplicaciones que las que trae el SO. • Estas aplicaciones pueden interferir con el SO, o con otras aplicaciones. • Por lo tanto, tenemos: • U.I. • Programexecution • Error detection Ayudantía Sistemas Operativos - http://villaseca.wordpress.com

  4. Evitar interferencias • No queremos que se interfiera con el SO • Cada aplicación con su algoritmo para leer del disco duro? Para cada sistema de archivos?... • Debemos usar llamadas a sistema • O no? • Ejemplo para reproducir un sonido Ayudantía Sistemas Operativos - http://villaseca.wordpress.com

  5. Llamadas a sistema • Conceptos: • Identidad • Parámetros: • Registros • Block/table • Stack • fd = open(“theFile”, O_RDONLY, 0744); • push 0744 • push O_RDONLY • pushdPtrToString • call open • mov [ebp-fd],eax • add esp,12 Ayudantía Sistemas Operativos - http://villaseca.wordpress.com

  6. Diferencia entre “systemprograms”, “systemcalls” • Ejemplo de copiar archivo. • Esto proporciona abstracción. • Basta con esto? • Debiera haber un “systemprogram” para cada cosa que uno desee hacer? • Todas las aplicaciones debieran estar formadas llamando a varios systemprograms? • Rendimiento? • Qué pasa si uno quiere una aplicación multiplataforma? Ayudantía Sistemas Operativos - http://villaseca.wordpress.com

  7. Applicationprogramming interfaces • Para qué? • Ejemplo de interfaz: • DirectSound y WASAPI • ASIO, OpenAL Ayudantía Sistemas Operativos - http://villaseca.wordpress.com

  8. Ejemplo usando API • usingMicrosoft.DirectX; • usingMicrosoft.DirectX.DirectSound; • PublicvoidplayMetal() • { • Devicedevice = CreateDevice(); • Buffer buffer = new Buffer(“Opeth - Deliverance.mp3”, device); • buffer.Play(0, BufferPlayFlags.Default); • } Ayudantía Sistemas Operativos - http://villaseca.wordpress.com

  9. Interfaces • Se facilitó todo! • Tenemos API’s para todo: • OpenGL • CUDA • Etc! Ayudantía Sistemas Operativos - http://villaseca.wordpress.com

  10. Kernel • Qué es? • Layered (hardware..UI) • Microkernel • Modular Ayudantía Sistemas Operativos - http://villaseca.wordpress.com

  11. Virtual machines • Descripción ejemplificada de “The Da Vinci Machine” para JVM, comparándolo con IronPython en .NET Ayudantía Sistemas Operativos - http://villaseca.wordpress.com

  12. Debugging • Lo hace el sistema operativo? • Stack traces • O la VM? • Exceptions • Ejemplo de debugger por debajo del SO • SoftICE Ayudantía Sistemas Operativos - http://villaseca.wordpress.com

More Related