Types Of System Calls

Types Of System Calls:

                                                                  Types Of System Calls



 *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


  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


Information Maintanance:

• 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


Protection:

• Control access to resources

• Get and set permissions

• Allow and deny user access


Examples of Windows and Unix System Calls:

  Exanple:

  Standard C Library Example 

C program invoking printf() library call, which calls write() system call







Comments

Popular posts from this blog

Small Factorials Spoj Solution(using python)

Factorials problem spoj Solution