imp osy
imp osy
3. Turnaround Time: Total time taken for a process from submission to completion.
3. Define deadlock:
A deadlock occurs when a group of processes is permanently blocked because each process is
waiting for a resource that another process in the group holds.
A real-time operating system (RTOS) is an OS designed to process data and execute tasks within a
strict time constraint.
Applications:
1. Embedded systems.
2. Industrial automation.
4. Medical devices.
Virtual memory paging divides the process's virtual address space into fixed-size pages that map to
physical memory frames, enabling efficient memory usage and the ability to run processes larger
than physical memory.
4 Marks Questions
Shared memory is one of the most efficient methods for inter-process communication
(IPC). It allows multiple processes to communicate by sharing a portion of the
memory. Once a shared memory region is created, all processes attached to it can
access and modify the data.
Diagram:-
+----------------------+ +---------------------+
| Process A | | Process B |
| (Producer/Consumer) | | (Consumer/Producer) |
+----------------------+ +---------------------+
| |
| |
v v
+---------------------------------------+
+---------------------------------------+
1. Mutual Exclusion:
o At least one resource must be held in a non-shareable mode (only one process can
use it at a time).
o Example: Process A holds a printer and waits for a scanner held by Process B.
3. No Preemption:
o Resources cannot be forcibly taken from a process; they must be released voluntarily
by the process holding them.
o Example: A process holding a file lock must release it before another process can use
the file.
4. Circular Wait:
o A set of processes forms a circular chain, where each process waits for a resource
held by the next process in the chain.
o Example: Process A waits for Process B, Process B waits for Process C, and Process C
waits for Process A.
The operating system performs the following activities in managing main memory:
1. Memory Allocation and Deallocation: Allocates memory to processes when they start and
deallocates it when they finish.
2. Memory Protection: Prevents processes from accessing the memory of other processes.
4. Virtual Memory Management: Uses techniques like paging and segmentation to manage
processes larger than physical memory.
b. File management
The operating system performs the following activities in managing files:
1. File Creation and Deletion: Allows users and processes to create and delete files.
4. File Storage Allocation: Allocates space on storage devices and retrieves files efficiently
6 Marks Questions