Thursday, July 2, 2009 at 3:38 AM |  
  • System calls provide the interface between a running program and the operating system.
    * Generally available as assembly-language instructions.
    * Languages defined to replace assembly language for systems programming allow system calls to be made directly (e.g., C, C++)
  • Three general methods are used to pass parameters between a running program and the operating system.
    * Pass parameters in registers.
    * Store the parameters in a table in memory, and the table address is passed as a parameter in a register.
    * Push (store) the parameters onto the stack by the program, and pop off the stack by operating system.


The main types of system calls are

  • Process Control: These types of system calls are used to control the processes. Ex: End, abort, load, execute, create process, terminate process etc.
  • File Management: These types of system calls are used to manage files. Ex: Create file, delete file, open, close, read, write etc.
  • Device Management: These types of system calls are used to manage devices. Ex: Request device, release device, read, write, get device attributes
Posted by Roger Labels:

0 comments:

Visit the Site
MARVEL and SPIDER-MAN: TM & 2007 Marvel Characters, Inc. Motion Picture © 2007 Columbia Pictures Industries, Inc. All Rights Reserved. 2007 Sony Pictures Digital Inc. All rights reserved. blogger templates