Module 2
Module 2
Module 2
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
System Call – Types (Cont.) 10
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
System Call – Types (Cont.) 11
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
System Call – Types (Cont.) 12
Protection
Control access to resources
Get and set permissions
Allow and deny user access
Examples of Windows and Unix System Calls
13
Standard C Library Example 14
C program invoking printf() library call, which calls write() system call
Protection - Modes 15
n s ?
s t i o
Q u e
A n y
33
References
Yo u !
h a n k
T