Академический Документы
Профессиональный Документы
Культура Документы
Operating Systems
Resource manager
Interface
Virtual Machine
Introduo : 2/22
OS requirements
Requirements
Performance
Security
Ease of use
Portable
OS architectures
Process manager
memory manager
I/O manager
Inter-process comunication
multiplexes the CPU time between the multiple execution units (processes)
User interface
OS architectures
Function calls
OS architectures
OS kernel
User space
Application provided by the OS and executed by the user (editor, shell, compiler()
System calls
Utility programs
Service /daemon
C lib
OS organization
Layered
Monolithic
Micro kernel
Distributed
VM based
Layered OS
hardware
Advantaged
Applications
Disadvantages
Monolithic architecture
Easy to implement
Low overheads
Monolithic architecture
DOS
Microkernel
Microkernel
Hibrid kernel
Distributed OS
on diffrente machines
Components initeractions
Distributed memory
Distributed processes
Amoeba
it attempts to restart it, otherwise selects another processor to provide the service
Virtual Machines
Virtual Machines
System Calls
by system calls
count=read(fd,buffer,nbytes)
System Calls
Comunication: send,
60 system calls
System Calls
Diagnostics
Networking
Security
System Services
https://msdn.microsoft.com/en-us/library/aa383723
System Calls
read function
1-3
{5}
__NR_read 3)
System Calls
read function
instruo INT 80
Context (register) is saved
7-8
System Calls
read function
10
System calls are provided by the system and are executed in the
system kernel.
They are entry points into the kernel and are therefore NOT linked into
your program.
Library calls include the ANSI C standard library and are therefore
portable.
man read
man fread
man man
section 3 section 2
fread vs read
fread
man fread
http://opensource.apple.com/source/Libc/Libc167/stdio.subproj/fread.c
Manual
Comandos de utilizador
Chamadas de sistema
Funes de biblioteca do C
Controladores de dispositivos
Ficheiros de configurao
Comandos de manuteno
Programao de Sistemas
Arquitectura : 28/25