# gangahrushikesh-ghk/os_record architecture

> Architecture diagram of the GitHub repository gangahrushikesh-ghk/os_record, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/gangahrushikesh-ghk/os_record
- Repository: https://github.com/gangahrushikesh-ghk/os_record

## Overview

OS-Lab-Record is a collection of independent, interactive C experiments that demonstrate operating-systems algorithms; it is not a single integrated runtime. The user selects an experiment, supplies inputs, and receives a computed result. The graph preserves the README’s scheduling, Banker’s analysis, memory allocation, paging, frame allocation, and disk scheduling capabilities. The source index and excerpts show standalone programs, but do not establish calls between experiments; those connections are intentionally absent.

Main entry points: [`OS-Lab-Record/experiments/01_cpu_scheduling/src`](https://github.com/gangahrushikesh-ghk/os_record/tree/main/OS-Lab-Record/experiments/01_cpu_scheduling/src) (FCFS and SJF), [`OS-Lab-Record/experiments/02_priority_round_robin/src`](https://github.com/gangahrushikesh-ghk/os_record/tree/main/OS-Lab-Record/experiments/02_priority_round_robin/src) (Priority and RR), [`OS-Lab-Record/experiments/03_banker_scheduling_analysis/src/bankers_algorithm.c`](https://github.com/gangahrushikesh-ghk/os_record/blob/main/OS-Lab-Record/experiments/03_banker_scheduling_analysis/src/bankers_algorithm.c) (Banker analysis), [`OS-Lab-Record/experiments/04_memory_allocation/src`](https://github.com/gangahrushikesh-ghk/os_record/tree/main/OS-Lab-Record/experiments/04_memory_allocation/src) (Block allocation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cpu["CPU Scheduling"]
  node_cpu1["FCFS and SJF"]
  node_cpu2["Priority and RR"]
end

subgraph group_safety["Resource Safety"]
  node_banker["Banker analysis"]
end

subgraph group_memory["Memory Management"]
  node_alloc["Block allocation"]
  node_paging["Address translation"]
  node_frames["Frame allocation"]
end

subgraph group_disk["Disk Scheduling"]
  node_disk8["FCFS, SSTF, SCAN"]
  node_disk9["LOOK, C-SCAN, C-LOOK"]
end

node_user(("Lab user"))

node_user -->|"selects experiment"| node_cpu1
node_user -->|"selects experiment"| node_cpu2
node_user -->|"selects experiment"| node_banker
node_user -->|"selects experiment"| node_alloc
node_user -->|"selects experiment"| node_paging
node_user -->|"selects experiment"| node_frames
node_user -->|"selects experiment"| node_disk8
node_user -->|"selects experiment"| node_disk9

click node_cpu1 "https://github.com/gangahrushikesh-ghk/os_record/tree/main/OS-Lab-Record/experiments/01_cpu_scheduling/src"
click node_cpu2 "https://github.com/gangahrushikesh-ghk/os_record/tree/main/OS-Lab-Record/experiments/02_priority_round_robin/src"
click node_banker "https://github.com/gangahrushikesh-ghk/os_record/blob/main/OS-Lab-Record/experiments/03_banker_scheduling_analysis/src/bankers_algorithm.c"
click node_alloc "https://github.com/gangahrushikesh-ghk/os_record/tree/main/OS-Lab-Record/experiments/04_memory_allocation/src"
click node_paging "https://github.com/gangahrushikesh-ghk/os_record/blob/main/OS-Lab-Record/experiments/05_paging/src/paging_address_translation.c"
click node_frames "https://github.com/gangahrushikesh-ghk/os_record/tree/main/OS-Lab-Record/experiments/07_frame_allocation/src"
click node_disk8 "https://github.com/gangahrushikesh-ghk/os_record/tree/main/OS-Lab-Record/experiments/08_disk_scheduling/src"
click node_disk9 "https://github.com/gangahrushikesh-ghk/os_record/tree/main/OS-Lab-Record/experiments/09_disk_scheduling/src"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cpu1,node_cpu2,node_user toneBlue
class node_banker toneAmber
class node_alloc,node_paging,node_frames toneMint
class node_disk8,node_disk9 toneRose
```

## Components

### CPU Scheduling

- [FCFS and SJF](https://github.com/gangahrushikesh-ghk/os_record/tree/main/OS-Lab-Record/experiments/01_cpu_scheduling/src): `OS-Lab-Record/experiments/01_cpu_scheduling/src`
- [Priority and RR](https://github.com/gangahrushikesh-ghk/os_record/tree/main/OS-Lab-Record/experiments/02_priority_round_robin/src): `OS-Lab-Record/experiments/02_priority_round_robin/src`

### Resource Safety

- [Banker analysis](https://github.com/gangahrushikesh-ghk/os_record/blob/main/OS-Lab-Record/experiments/03_banker_scheduling_analysis/src/bankers_algorithm.c): `OS-Lab-Record/experiments/03_banker_scheduling_analysis/src/bankers_algorithm.c`

### Memory Management

- [Block allocation](https://github.com/gangahrushikesh-ghk/os_record/tree/main/OS-Lab-Record/experiments/04_memory_allocation/src): `OS-Lab-Record/experiments/04_memory_allocation/src`
- [Address translation](https://github.com/gangahrushikesh-ghk/os_record/blob/main/OS-Lab-Record/experiments/05_paging/src/paging_address_translation.c): `OS-Lab-Record/experiments/05_paging/src/paging_address_translation.c`
- [Frame allocation](https://github.com/gangahrushikesh-ghk/os_record/tree/main/OS-Lab-Record/experiments/07_frame_allocation/src): `OS-Lab-Record/experiments/07_frame_allocation/src`

### Disk Scheduling

- [FCFS, SSTF, SCAN](https://github.com/gangahrushikesh-ghk/os_record/tree/main/OS-Lab-Record/experiments/08_disk_scheduling/src): `OS-Lab-Record/experiments/08_disk_scheduling/src`
- [LOOK, C-SCAN, C-LOOK](https://github.com/gangahrushikesh-ghk/os_record/tree/main/OS-Lab-Record/experiments/09_disk_scheduling/src): `OS-Lab-Record/experiments/09_disk_scheduling/src`

### Other components

- **Lab user**

## Connections

- Lab user → FCFS and SJF: selects experiment (evidence: `README.md`)
- Lab user → Priority and RR: selects experiment (evidence: `README.md`)
- Lab user → Banker analysis: selects experiment (evidence: `README.md`)
- Lab user → Block allocation: selects experiment (evidence: `README.md`)
- Lab user → Address translation: selects experiment (evidence: `README.md`)
- Lab user → Frame allocation: selects experiment (evidence: `README.md`)
- Lab user → FCFS, SSTF, SCAN: selects experiment (evidence: `README.md`)
- Lab user → LOOK, C-SCAN, C-LOOK: selects experiment (evidence: `README.md`)
