Basics of Operating Systems
Basics of Operating Systems
▪ Process management
▪ Memory management
▪ Device management
▪ User interface
o The kernel is the core part of the OS, managing system resources and
communication between hardware and software components. It handles
process scheduling, memory management, and device control.
Process Management
Memory Management
o Paging: Divides memory into fixed-size pages and maps them to physical
memory frames.
o Segmentation: Divides memory into variable-sized segments based on
logical divisions, such as functions or data structures.
13. What are page tables, and how do they facilitate virtual memory?
o Page tables are data structures used to map virtual addresses to physical
addresses. Each process has its own page table, allowing the OS to
translate virtual memory addresses to the actual locations in RAM.
File Systems
16. What is a file system, and what are its key components?
o OS uses access control lists (ACLs) and permission bits to determine who
can read, write, or execute files, ensuring data security and integrity.
I/O Management
o Synchronous I/O: The process waits for the I/O operation to complete
before continuing execution.
o Asynchronous I/O: The process can continue executing while the I/O
operation is being processed in the background.
25. What are the differences between block and character devices?
28. What are semaphores, and how are they used in synchronization?
▪ Mutual exclusion
▪ No preemption
▪ Circular wait
30. What are some common strategies for deadlock prevention and avoidance?
o Strategies include:
o ACLs are lists that define which users or groups have specific
permissions to access an object, providing fine-grained control over
resource access.
Advanced Topics
4o mini