3 CS ServicesandCall
3 CS ServicesandCall
System Calls
System Services
Operating System Services
An operating system executes
programs and makes the process of
solving them easier.
It also makes the computer system
easier to use and helps the user use
the computer hardware efficiently.
Apart from these, it also provides an
array of services both to the users and
the programs.
Services of Operating System
Process control
• create process, terminate process
• end, abort
• load, execute
• get process attributes, set process attributes
• wait for time
• wait event, signal event
• allocate and free memory
• Dump memory if error
• Debugger for determining bugs, single step execution
• Locks for managing access to shared data between
processes
Types of System Calls (Cont.)
File management
• create file, delete file
• open, close file
• read, write, reposition
• get and set file attributes
Device management
• request device, release device
• read, write, reposition
• get device attributes, set device attributes
• logically attach or detach devices
Types of System Calls (Cont.)
Information maintenance
• get time or date, set time or date
• get system data, set system data
• get and set process, file, or device attributes
Communications
• create, delete communication connection
• send, receive messages if message passing model to
host name or process name
From client to server
• Shared-memory model create and gain access to
memory regions
• transfer status information
• attach and detach remote devices
Types of System Calls (Cont.)
Protection
• Control access to resources
• Get and set permissions
• Allow and deny user access
Examples of Windows and Unix System Calls