Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

System call


Published on

System call

  1. 2. <ul><li>System call provide the interface between a process and the operating system. Certain system allow system calls to be made directly from a higher level language program, the calls normally resembles predefined functions or subroutine calls. They may generate a call to a special run-time routine that makes the system calls, or the system call may be generated directly in line. These calls generally available as assembly language instructions. </li></ul>
  2. 3. Example:- <ul><li>Consider that we have to write a program to read data from one file and to copy them to another file. The first input that the program will need is the names of the two files the input file and the output file. In an interactive system this approach will require a sequence of system calls first to write a prompting message on the screen and then to read from the keyboard the characters that define the two files. After file names are obtained each </li></ul>
  3. 4. <ul><li>Of these operations require another system calls and may encounter possible error conditions. </li></ul>X: Parameters for call Load address X System call 13 Use Parameters from table X X User Program Operating System
  4. 5. System Call can be grouped into five major categories <ul><li>Process Control </li></ul><ul><li>File Management </li></ul><ul><li>Device Management </li></ul><ul><li>Information Maintenance </li></ul><ul><li>Communications </li></ul>
  5. 6. Process Control <ul><li>END, ABORT </li></ul><ul><li>Load, Execute </li></ul><ul><li>Create Process, Terminate Process </li></ul><ul><li>Wait Event, Signed Event </li></ul><ul><li>Allocate and free memory </li></ul>
  6. 7. File Management <ul><li>Create File, Delete File </li></ul><ul><li>Open , Close </li></ul><ul><li>Read, write, reposition </li></ul><ul><li>Get file attributes, set file attributes </li></ul>
  7. 8. Device Management <ul><li>Request device, Release Device </li></ul><ul><li>Read, Write, Reposition </li></ul><ul><li>Get Device attributes, set device attributes </li></ul><ul><li>Logically attach or detach device </li></ul>
  8. 9. Information Maintenance <ul><li>Get time or date, set time or date </li></ul><ul><li>Get system date, set system date </li></ul><ul><li>Get process, device attributes </li></ul>
  9. 10. Communications <ul><li>Create, delete communications connections </li></ul><ul><li>Send, Receive message </li></ul><ul><li>Transfer status information </li></ul><ul><li>Attach or detach remote devices </li></ul>
  10. 11. Sumant Kumar Diwakar Web Designer