• System calls can be roughly grouped
into five major categories:
- Process Control.
- load
- execute
- create process
- Terminate process
- get/set process attributes
- wait for time, wait event, signal event
- allocate, free memory
- File management.
- create file, delete file
- open, close
- read, write, reposition
- get/set file attributes
- Device Management.
- request device, release device
- read, write, reposition
- get/set device attributes
- logically attach or detach devices
- Information Maintenance.
- get/set time or date
- get/set system data
- get/set process, file, or device
attributes
- Communication.
- create, delete communication connection
- send, receive messages
- transfer status information
- attach or detach remote devices
Processor mode and
context switching
• A syscall is processed in kernel
mode, which is accomplished by changing the processor execution mode to a more
privileged one, but no process context switch is necessary.
• The hardware sees the world in terms
of the execution mode according to the processor status register, and processes
are an abstraction provided by the operating system.
• A syscall does not require a context
switch to another process, it is processed in the context of whichever process
invoked it.
No comments:
Post a Comment