Skip to main content

What Are System Calls

Today, we want to discuss about system calls

What  are System Calls


•    System Calls provide the Interface between a process and the Operating System.
•    These calls are generally available as Assembly language instruction.
•    System Calls can also be made directly through HLL  programs for certain systems.
•    UNIX System calls can be invoked directly from a C or C++ program.


figure 1: structure of system calls


An Example of how system calls are used.


  • Consider a simple program to copy data from one file to another file .
  • The first input of the program will be the name of both files.
  • These names can be specified depending on the design of Operation System
  • Once the file names are obtained, the program opens an input file and  create an output file
  • Each of this operations require other System calls and may encounter possible error    conditions.




How System Calls Occur

System Calls occur in different ways depending on the computer in use:

  • More information is required than just the identify of the desired System call.
  • The exact type and amount of information varies according to the operation system and call
  • For instance to get an input we need to specify the file of device to use as source and the address and length of memory buffer into which the input should be read.

Figure 2: System Calls occur in different ways depending on the computer

Categories of System Calls

System calls can be grouped into five major categories as follows.

  • Process control
  • File management.
  • Device management
  • Information Maintenance and
  • Communication.

Some system calls under process control are:


  • End, abort
  • Load, execute
  • Create process, terminate process
  • Get process, terminate process
  • Wait for time
  • Allocate and free memory

figure 3: system calls under process control

Some system calls under file management are:


  • Create file, delete file
  • Open , close
  • Read, write, re position.
  • Get file attributes, set file attributes

Some system calls under device management are:


  • Request Device, release device
  • Read, write, re position.
  • Get device attributes and set device attributes
  • Logically attach or detach devices


Figure 4: system calls under device management

Some system calls under information maintenance are:

•    Get time or date, Set time of date
•    Logically attach or detach devices
•    Information maintenance
•    Get system data, Set Systems  data
•    Get process, file of device attributes
•    Set process, file or device attributes

Some system calls under communication are:

•    Create, delete communication connection.
•    Send, receive messages
•    Transfer status information
•    Attach or detach remote devices.




Comments

Popular posts from this blog

3.1.1 Identify Between Resident And Transient Routines

Memory Management Memory management is concerned with managing: The computer’s available pool of memory Allocating space to application routines and making sure that they do not interfere with each other. 3.1.1 Identify between resident and transient routines The operating system is a collection of software routines. Resident routines Transient routines Routines that directly support application programs as they run Stored on disk and read into memory only when needed Example: routine that control physical I/O Example: routine that formats disks The operating system occupies low memory beginning with address 0. Key control information comes first followed by the various resident operating system routines. The remaining memory, called the transient area, is where application programs and transient operating system routines are loaded. Resident & transient routines structure...

Operating Systems Definition and the Classification of OS

             OPERATING SYSTEMS ( OS ) What is an operating system? An operating system (sometimes abbreviated as "OS") is the program that, after being initially loaded into the computer by a boot program, manages all the other programs in a computer. The other programs are called applications or application programs. The application programs make use of the operating system by making requests for services through a defined application program interface (API). In addition, users can interact directly with the operating system through a user interface such as a command language or a graphical user interface (GUI). An operating system performs these services for applications:     In a multitasking operating system where multiple programs can be running at the same time, the operating system determines which applications should run in what order and how much time should be allowed for each application before g...

Types of Operating System

State four types of Operating System 1)       MICROSOFT WINDOWS Operating system designed and produced by Microsoft Corporation. Similar to other operating systems, Windows makes a computer system user-friendly by providing a graphical display and organizing information so that it can be easily accessed. The operating system utilizes icons and tools that simplify the complex operations performed by computers. Estimates suggest that 90% of personal computers use the Windows operating system. Microsoft introduced the operating system in 1985 and it has continued to be widely used despite competition from Apple's Macintosh operating system. example of windows Display of Window 8 Name Release date Release version Editions Build Windows 10 29 July 2015 NT 10.0 [1] Windows 10 Home. Windows 10 Mac 7 Windows 10 Enterprise Windows 10 Education Windows ...