Thursday, July 2, 2009
at
3:38 AM
|
- System calls provide the interface between a running program and the operating system.
* Generally available as assembly-language instructions.
* Languages defined to replace assembly language for systems programming allow system calls to be made directly (e.g., C, C++) - Three general methods are used to pass parameters between a running program and the operating system.
* Pass parameters in registers.
* Store the parameters in a table in memory, and the table address is passed as a parameter in a register.
* Push (store) the parameters onto the stack by the program, and pop off the stack by operating system.
- Process Control: These types of system calls are used to control the processes. Ex: End, abort, load, execute, create process, terminate process etc.
- File Management: These types of system calls are used to manage files. Ex: Create file, delete file, open, close, read, write etc.
- Device Management: These types of system calls are used to manage devices. Ex: Request device, release device, read, write, get device attributes
Posted by
Roger
Labels:
os 3
0 comments:
Post a Comment