How zuhaib786/operating_systems_mtl458 works
Main Components Organization
a) Shell Implementation
b) Memory Allocator
c) Page Table Simulator
d) Reader-Writer Locks
For Each Component, Detail the Following
A. Shell Implementation (Shell.c):
• Input Parser (for cd, history, execvp commands)
• Path Handler (MTL458 path processing)
• Command Executor
• History Manager (5 most recent commands)
B. Memory Allocator (my_alloc.c):
• 4KB Memory Page (mmap)
• Free List Manager
• Allocation Interface (my_alloc, my_free)
• Heap Information System
C. Page Table Simulator (Page_Table_Simulation.c):
• Input Processor (trace file reader)
• Page Table Manager
• Frame Allocation System
• Replacement Strategy Manager (OPT, FIFO, CLOCK, LRU, RANDOM)
• Statistics Collector
D. Reader-Writer Locks (assignment_code/):
• Reader Preference Implementation
• Writer Preference Implementation
• Shared components:
• Lock Initializer
• Common Lock Structure
• Thread Management
Key Design Elements
• How data moves between components
• Synchronization points in the reader-writer implementation
b) Interface Points:
• System call interfaces (mmap, munmap)
• External input points (trace files, command inputs)
• Thread interaction points
c) Memory Structures:
• 8KB frame size in page table
• 4KB mmap allocation in memory allocator
• Shared memory regions in reader-writer implementation