Mapa mental
OS Services

Contenido del mapa
OS Services
Interaction
- Users
- Interact indirectly through collection of system programs that make up OS interface
- GUI, CMD
- Interact indirectly through collection of system programs that make up OS interface
- Processes
- Interact by making system calls into the OS proper (kernel)
- Not directly
- Interact by making system calls into the OS proper (kernel)
- Users
Services
- Processes
- Progam execution
- I/O operations
- FS Manipulation
- Interprocess communication
- OS (internal)
- Error handling
- Resource allocation
- Accounting
- Protection and security
- Processes
System Calls
- Programming interface to the services provided by the OS
- Written in high level language
- C/C++ (printf)
- Accessed by programs via high-level API rather than direct system call
- WHY?
- Abstracts complexity
- Need method to switch from user mode to kernel mode
- System calls execute privileged kernel code
- Shouldn't let user switch CPU to privileged mode
- Controlled by the kernel
- Allows for backwards compabilibilty
- WHY?
- Written in high level language
- Trapping to the kernel
- User process runs trap execution, which switches CPU to privileged mode and jump to kernel pre-defined address of system calls.
- HOW?
- User process calls system call wrapper function (printf) from C library
- Wrapper function issues low-level trap instruction (in assembly) to switch from user mode to kernel mode
- CPU specific instruction
- Specific pre-defined location in kernel
- Kernel checks system call is legal
- Mode bits alternated
- Wrapper function issues low-level trap instruction (in assembly) to switch from user mode to kernel mode
- User process calls system call wrapper function (printf) from C library
- Problem that no call can directly be made from user space to specific function in kernel space.
- Before issuing trap instruction, index is stored in well know location (CPU registers)
- Once is kernel space, index used to look up desired kernel service function, which is called
- Function call may have arguments, proceed only if arguments are valid
- Once is kernel space, index used to look up desired kernel service function, which is called
- Before issuing trap instruction, index is stored in well know location (CPU registers)
- Programming interface to the services provided by the OS
Imágenes y archivos del mapa
Información
- Descripción
- Masters (OS) Computer Science Mapa Mental sobre OS Services, creado por Ar B el 12/04/2016.
- Creado por
- Ar B
- Visitas
- 1
- Valoración









