System Calls
• provide an interface to the services made
available by an operating system.
• Generally available as routines written in C and
C++
• Certain low-level tasks (for example, tasks where
hardware must be accessed directly), may need
to be written using assembly-language
instructions.
controlling a specific hardware peripheral
• disk drive
• network interface card
• input/output device
• Most programmers never see this level of detail,
however
Application
Programming
Interface
• The API specifies a set of functions that are
available to an application programmer,
including the parameters that are passed to
each function and the return values the
programmer can expect
• Win32 API for Windows systems
• POSIX API for POSIX-based systems (which
include virtually all versions of UNIX, Linux, and
Mac OS X)
• Java API for designing programs that run on the
Java virtual machine
Most common APIs
available to application
programmers
ReadFile() function in the Win32 API
Types of System
Calls
• Process control
• File manipulation
• Device manipulation
• Information maintenance
• Communications
• Protection.
Operating Systems - Introduction to System Calls.pptx

Operating Systems - Introduction to System Calls.pptx

  • 1.
    System Calls • providean interface to the services made available by an operating system. • Generally available as routines written in C and C++ • Certain low-level tasks (for example, tasks where hardware must be accessed directly), may need to be written using assembly-language instructions. controlling a specific hardware peripheral • disk drive • network interface card • input/output device
  • 3.
    • Most programmersnever see this level of detail, however Application Programming Interface • The API specifies a set of functions that are available to an application programmer, including the parameters that are passed to each function and the return values the programmer can expect • Win32 API for Windows systems • POSIX API for POSIX-based systems (which include virtually all versions of UNIX, Linux, and Mac OS X) • Java API for designing programs that run on the Java virtual machine Most common APIs available to application programmers
  • 4.
  • 5.
    Types of System Calls •Process control • File manipulation • Device manipulation • Information maintenance • Communications • Protection.