Operating System BCA Sem4 Detailed Notes
Operating System BCA Sem4 Detailed Notes
- Memory Management: Keeps track of each byte in a computer’s memory and manages
allocation/deallocation.
- File System Management: Handles the reading/writing of files, access control, and directory
structure.
- Security and Protection: Ensures secure access to resources through authentication and
authorization.
- User Interface: Provides interaction via CLI (e.g., shell) or GUI (e.g., Windows).
Types of OS:
Process Management:
- Process Control Block (PCB): Stores process state, process ID, program counter, registers, memory
limits, etc.
- Threads: Lightweight subprocesses that share memory space. Types include user-level and
kernel-level threads.
- Scheduling Algorithms:
Address Binding:
- Logical vs Physical Address: Logical is used by programs; physical is the actual location in RAM.
Memory Techniques:
- Paging: Divides memory into fixed-size frames and processes into pages.
- Segmentation: Divides memory into segments like code, data, and stack.
- Virtual Memory: Uses disk space as additional RAM. Demand paging loads pages only when
needed.
- Occurs when processes wait for resources held by each other indefinitely.
- Detection & Recovery: Resource Allocation Graph, preemptive resource release, or rollback.
Disk Scheduling:
File System:
Multiprocessor OS: