System Calls

Páginas: 3 (724 palabras) Publicado: 13 de agosto de 2012
The design of the microprocessor architecture on practically all modern systems (except some embedded systems) involves a security model (such as the rings model) which specifies multiple privilegelevels under which software may be executed; for instance, a program is usually limited to its own address space so that it cannot access or modify other running programs or the operating systemitself, and a program is usually prevented from directly manipulating hardware devices (e.g. the frame buffer or network devices).
However, many normal applications obviously need access to thesecomponents, so system calls are made available by the operating system to provide well-defined, safe implementations for such operations. The operating system executes at the highest level of privilege, andallows applications to request services via system calls, which are often executed via interrupts; an interrupt automatically puts the CPU into some required privilege level, and then passes control tothe kernel, which determines whether the calling program should be granted the requested service. If the service is granted, the kernel executes a specific set of instructions over which the callingprogram has no direct control, returns the privilege level to that of the calling program, and then returns control to the calling program.
[edit]The library as an intermediary

Generally, systemsprovide a library or API that sits between normal programs and the operating system. On Unix-like systems, that API is usually part of an implementation of the C library (libc), such as glibc, thatprovides wrapper functions for the system calls, often named the same as the system calls that they call. On Windows NT, that API is part of the Native API, in the ntdll.dll library; this is anundocumented API used by implementations of the regular Windows API and directly used by some system programs on Windows. The library's wrapper functions expose an ordinary function calling convention (a...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Calls
  • systemas
  • System
  • System
  • System
  • Systemas
  • System
  • system

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS