Twitter Delicious Facebook Digg Stumbleupon Favorites More

Wednesday 31 August 2011

Operating System Calls

To use the functions which are provided by an Operating System we use system calls, in other words we can say  system calls provides an interface to the services provided by an operating system.

Types of System Call


                                windows                                      unix
Process Control                      CreateProcess()                                                         fork()
                                               ExitProcess()                                                             exit()
                                               WaitForSingleObject()                                              wait()

File                                          CreateFile()                                                              open()
Manipulation                            ReadFile()                                                                 read()
                                                WriteFile()                                                                write()
                                                CloseHandle()                                                           close()

Device                                      SetConsolMode()                                                     ioctl()
Manipulation                             ReadConsole()                                                          read()
                                                 WriteConsole()                                                         write()

Information                                GetCurrentProcessID()                                             getpid()
Maintaince                                 SetTimer()                                                                alarm()
                                                  Sleep()                                                                     sleep()

Communication                          CreatePipe()                                                             pipe()
                                                  CreateFileMapping()                                                shmget()
                                                  MapViewOfFile()                                                     mmap()

Proctection                                 SetFileSecurity()                                                       chmod()
                                                   InitializeSecurityDescriptor()                                     umask()
                                                   SetSecurityDescriptorGroup()                                  chown()


                                                                                      source :   operating system concepts   by Galvin.
These are some system calls which is generally provided by an OS for the programmers.

0 comments:

Post a Comment

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Blogger Templates