Professional Documents
Culture Documents
Bootstrap Program
Bootstrap Program
• Non Volatile: retain its content even when the power is off
System Calls:
• Provide an interface to the services made available by an OS.
• Modes of an Operation:
• User Mode: doesn’t have direct access to memory and hardware
• Kernel Mode: have direct access to memory and hardware If there
is crash in program running in kernel mode, it affects the whole
system.
System Call
• In User mode
• Need some resources/request a service needs access make a call
to access the resources
• Program is switched from user mode to kernel mode context
switching
• When the program need to access resources and enter into kernel
mode makes a call System call
• Source File-------------------------------------------------Destination File
1. Acquire Input file name
2. Write prompt to the screen
3. Accept Input
4. Acquire Output File name
5. Write prompt to the screen
6. Accept Input
7. Open Input File
8. If file doesn’t exit, Abort
9. Create Output File
10. If the file doesn’t exist, Abort
11. Read From the Input File
12. Write to Output File
13. Close Output File
14. Write a Completion message to the screen
15. Terminate normally
• TYPES OF SYSTEM CALLS:
• Five Major categories
• 1. Process Control
• 2.File Manipulation
• 3. Device Management
• 4.Information Maintenance
• 5.Communication
PROCESS CONTROL
• 1. END,ABORT: Terminate the process normally/ error happened
• 2. Load, Execute
• Create, Terminate
• Get Process, Set Process Attributes
• Wait for time
• Wait event, Signal Event
• Allocate and Free Memory
File Manipulation
• 1. Create, Delete
• 2. Open, Close
• Read, write, and Reposition
• Get, set File Attributes
Information Maintenance