System Calls Part II
Objectives
We would like to :
- Understand system calls.
Notes
- This is 2.3 in the book, you should read it
- Figure on page 65 shows how we jump to kernel mode when handling a system call.
- 2.3.3 Discusses types of system calls
- Process control
- Creation, exit
- set attributes
- Send signals
- File management
- open, close, read, write,....
- Device management
- open, close, read, write,....
- Interesting, on linux/unix everything is a file!
- Information maintenance
- get/set time, date ,...
- Get/set file/process attributes
- Communications
- Send/receive messages
- Create connections
- Protections
- The box on page 68 shows some windows and linux system calls.
- They mention that calls like
cout << "hello world";
- Invoke at least one, and possibly more system calls.
- This is pictured on page 69
- Under process control, they discuss creating a new process.