Quesiton 1) Write a brief description about the following system calls used in Unix/Linux. Add information such as parameters, resources used, expected results/return values, and possible error conditions.
(Hint: use the man pages)
- Open
- Close
- Read
- Write
- Fork
Question 2) Explain which of the following systems calls should be privileged and why.
a. Manipulating data in physical memory
b. Set the value of the timer
c. Switch to kernel mode
d. Acess IO device
e. Check the current list of running processes
Explain each and every question in depth with examples.