






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







UNIVERSITY of SAN FRANCISCO department of computer science
CS 326 Operating Systems Greg Benson
Systems calls and their parameters define the user-kernel interface
This interface provides functionality to user processes:
Process management
File and directory management
Others: I/O, time, memory, environment
Processes
PIDs (process IDs)
Files
FDs (file descriptors)
Main issues:
Create and name processes
Synchronize processes
Process relationships (parent, child, ancestors)
Keeping track of resources (freeing resources)
User-level data types and operations:
PID, exec, wait, kill, signals
Parent/Child
Parent waits for child, child exits later
Child exits, parent waits
Parent waits, child dies (exits)
Parent may wait for several children
Parent dies, child exits later
File Descriptors
Small non-negative integers
Used to index a kernel-level file descriptor table
Used for console I/O and file I/O (also network I/O)
Operations
create, remove, open, read, write, seek, tell, close
create/remove
open/close
read/write
seek/tell