# pravinraj213/os-241401070 architecture

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

- Interactive diagram: https://gitdiagram.com/pravinraj213/os-241401070
- Repository: https://github.com/pravinraj213/os-241401070

## Overview

This repository is a collection of standalone operating-systems demonstrations, not a single application. A user supplies inputs to an individual program and receives scheduling, memory-management, deadlock-safety, page-replacement, synchronization, IPC, or system-call results. The graph preserves the distinct examples; the shared-memory segment and producer/consumer threads show internal state and coordination where excerpts support them. The README is empty, and AWK_Scripts/awk_demo.sh was not sampled, so its behavior and data relationship are not inferred.

Main entry points: [`Synchronization/producer-consumer.c`](https://github.com/pravinraj213/os-241401070/blob/main/Synchronization/producer-consumer.c) (Thread Coordinator), [`System_Calls/file_io.c`](https://github.com/pravinraj213/os-241401070/blob/main/System_Calls/file_io.c) (File I/O), [`IPC/sender.c`](https://github.com/pravinraj213/os-241401070/blob/main/IPC/sender.c) (Shared-memory Sender), [`IPC/receiver.c`](https://github.com/pravinraj213/os-241401070/blob/main/IPC/receiver.c) (Shared-memory Receiver)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_scheduling["CPU Scheduling"]
  node_fcfs["FCFS<br/>[fcfs.c]"]
  node_sjf["SJF<br/>[sjf.c]"]
  node_priority["Priority<br/>[priority.c]"]
  node_roundrobin["Round Robin<br/>[rr.c]"]
end

subgraph group_memory["Memory Concepts"]
  node_banker["Banker's Algorithm<br/>[bankers_algo.c]"]
  node_firstfit["First Fit<br/>[firstfit.c]"]
  node_bestfit["Best Fit<br/>[bestfit.c]"]
  node_fifo["FIFO Replacement<br/>[fifo_page.c]"]
  node_lru["LRU Replacement<br/>[lru_page.c]"]
end

subgraph group_concurrency["Concurrency and IPC"]
  node_producer["Producer"]
  node_consumer["Consumer"]
  node_syncmain["Thread Coordinator"]
  node_sender["Shared-memory Sender<br/>[sender.c]"]
  node_receiver["Shared-memory Receiver<br/>[receiver.c]"]
  node_shm[("Shared Memory")]
end

subgraph group_syscalls["System Calls"]
  node_dirops["Directory Operations<br/>[dir_ops.c]"]
  node_forkdemo["Fork Demo<br/>[fork.c]"]
  node_execdemo["Fork and Exec<br/>[exec.c]"]
  node_fileio["File I/O<br/>[file_io.c]"]
end

subgraph group_shell["Shell Demo"]
  node_awk["AWK Demo<br/>[awk_demo.sh]"]
end

node_user(("User"))
node_filesystem[("Filesystem")]
node_os["Unix-like OS"]

node_user -->|"runs"| node_fcfs
node_user -->|"runs"| node_sjf
node_user -->|"runs"| node_priority
node_user -->|"runs"| node_roundrobin
node_user -->|"runs"| node_banker
node_user -->|"runs"| node_firstfit
node_user -->|"runs"| node_bestfit
node_user -->|"runs"| node_fifo
node_user -->|"runs"| node_lru
node_user -->|"runs"| node_syncmain
node_syncmain -->|"creates thread"| node_producer
node_syncmain -->|"creates thread"| node_consumer
node_producer -->|"shares buffer"| node_consumer
node_user -->|"runs"| node_sender
node_user -->|"runs"| node_receiver
node_sender -->|"writes message"| node_shm
node_receiver -->|"reads message"| node_shm
node_user -->|"runs"| node_dirops
node_user -->|"runs"| node_forkdemo
node_user -->|"runs"| node_execdemo
node_user -->|"runs"| node_fileio
node_execdemo -->|"forks and executes"| node_os
node_dirops -->|"uses system calls"| node_os
node_forkdemo -->|"uses fork"| node_os
node_fileio -->|"reads and writes"| node_filesystem
node_fileio -->|"uses file calls"| node_os
node_user -->|"runs"| node_awk

click node_fcfs "https://github.com/pravinraj213/os-241401070/blob/main/CPU_Scheduling/fcfs.c"
click node_sjf "https://github.com/pravinraj213/os-241401070/blob/main/CPU_Scheduling/sjf.c"
click node_priority "https://github.com/pravinraj213/os-241401070/blob/main/CPU_Scheduling/priority.c"
click node_roundrobin "https://github.com/pravinraj213/os-241401070/blob/main/CPU_Scheduling/rr.c"
click node_banker "https://github.com/pravinraj213/os-241401070/blob/main/Deadlock_Avoidance/bankers_algo.c"
click node_firstfit "https://github.com/pravinraj213/os-241401070/blob/main/Memory_Management/firstfit.c"
click node_bestfit "https://github.com/pravinraj213/os-241401070/blob/main/Memory_Management/bestfit.c"
click node_fifo "https://github.com/pravinraj213/os-241401070/blob/main/Page_Replacement/fifo_page.c"
click node_lru "https://github.com/pravinraj213/os-241401070/blob/main/Page_Replacement/lru_page.c"
click node_producer "https://github.com/pravinraj213/os-241401070/blob/main/Synchronization/producer-consumer.c"
click node_consumer "https://github.com/pravinraj213/os-241401070/blob/main/Synchronization/producer-consumer.c"
click node_syncmain "https://github.com/pravinraj213/os-241401070/blob/main/Synchronization/producer-consumer.c"
click node_sender "https://github.com/pravinraj213/os-241401070/blob/main/IPC/sender.c"
click node_receiver "https://github.com/pravinraj213/os-241401070/blob/main/IPC/receiver.c"
click node_dirops "https://github.com/pravinraj213/os-241401070/blob/main/System_Calls/dir_ops.c"
click node_forkdemo "https://github.com/pravinraj213/os-241401070/blob/main/System_Calls/fork.c"
click node_execdemo "https://github.com/pravinraj213/os-241401070/blob/main/System_Calls/exec.c"
click node_fileio "https://github.com/pravinraj213/os-241401070/blob/main/System_Calls/file_io.c"
click node_awk "https://github.com/pravinraj213/os-241401070/blob/main/AWK_Scripts/awk_demo.sh"

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_fcfs,node_sjf,node_priority,node_roundrobin,node_user toneBlue
class node_banker,node_firstfit,node_bestfit,node_fifo,node_lru,node_filesystem toneAmber
class node_producer,node_consumer,node_syncmain,node_sender,node_receiver,node_shm toneMint
class node_dirops,node_forkdemo,node_execdemo,node_fileio toneRose
class node_awk,node_os toneIndigo
```

## Components

### CPU Scheduling

- [FCFS](https://github.com/pravinraj213/os-241401070/blob/main/CPU_Scheduling/fcfs.c): `CPU_Scheduling/fcfs.c`
- [SJF](https://github.com/pravinraj213/os-241401070/blob/main/CPU_Scheduling/sjf.c): `CPU_Scheduling/sjf.c`
- [Priority](https://github.com/pravinraj213/os-241401070/blob/main/CPU_Scheduling/priority.c): `CPU_Scheduling/priority.c`
- [Round Robin](https://github.com/pravinraj213/os-241401070/blob/main/CPU_Scheduling/rr.c): `CPU_Scheduling/rr.c`

### Memory Concepts

- [Banker's Algorithm](https://github.com/pravinraj213/os-241401070/blob/main/Deadlock_Avoidance/bankers_algo.c): `Deadlock_Avoidance/bankers_algo.c`
- [First Fit](https://github.com/pravinraj213/os-241401070/blob/main/Memory_Management/firstfit.c): `Memory_Management/firstfit.c`
- [Best Fit](https://github.com/pravinraj213/os-241401070/blob/main/Memory_Management/bestfit.c): `Memory_Management/bestfit.c`
- [FIFO Replacement](https://github.com/pravinraj213/os-241401070/blob/main/Page_Replacement/fifo_page.c): `Page_Replacement/fifo_page.c`
- [LRU Replacement](https://github.com/pravinraj213/os-241401070/blob/main/Page_Replacement/lru_page.c): `Page_Replacement/lru_page.c`

### Concurrency and IPC

- [Producer](https://github.com/pravinraj213/os-241401070/blob/main/Synchronization/producer-consumer.c): `Synchronization/producer-consumer.c`
- [Consumer](https://github.com/pravinraj213/os-241401070/blob/main/Synchronization/producer-consumer.c): `Synchronization/producer-consumer.c`
- [Thread Coordinator](https://github.com/pravinraj213/os-241401070/blob/main/Synchronization/producer-consumer.c): `Synchronization/producer-consumer.c`
- [Shared-memory Sender](https://github.com/pravinraj213/os-241401070/blob/main/IPC/sender.c): `IPC/sender.c`
- [Shared-memory Receiver](https://github.com/pravinraj213/os-241401070/blob/main/IPC/receiver.c): `IPC/receiver.c`
- **Shared Memory**

### System Calls

- [Directory Operations](https://github.com/pravinraj213/os-241401070/blob/main/System_Calls/dir_ops.c): `System_Calls/dir_ops.c`
- [Fork Demo](https://github.com/pravinraj213/os-241401070/blob/main/System_Calls/fork.c): `System_Calls/fork.c`
- [Fork and Exec](https://github.com/pravinraj213/os-241401070/blob/main/System_Calls/exec.c): `System_Calls/exec.c`
- [File I/O](https://github.com/pravinraj213/os-241401070/blob/main/System_Calls/file_io.c): `System_Calls/file_io.c`

### Shell Demo

- [AWK Demo](https://github.com/pravinraj213/os-241401070/blob/main/AWK_Scripts/awk_demo.sh): `AWK_Scripts/awk_demo.sh`

### Other components

- **User**
- **Filesystem**
- **Unix-like OS**

## Connections

- User → FCFS: runs
- User → SJF: runs (evidence: `CPU_Scheduling/sjf.c`)
- User → Priority: runs (evidence: `CPU_Scheduling/priority.c`)
- User → Round Robin: runs
- User → Banker's Algorithm: runs (evidence: `Deadlock_Avoidance/bankers_algo.c`)
- User → First Fit: runs (evidence: `Memory_Management/firstfit.c`)
- User → Best Fit: runs (evidence: `Memory_Management/bestfit.c`)
- User → FIFO Replacement: runs (evidence: `Page_Replacement/fifo_page.c`)
- User → LRU Replacement: runs (evidence: `Page_Replacement/lru_page.c`)
- User → Thread Coordinator: runs (evidence: `Synchronization/producer-consumer.c`)
- Thread Coordinator → Producer: creates thread (evidence: `Synchronization/producer-consumer.c`)
- Thread Coordinator → Consumer: creates thread (evidence: `Synchronization/producer-consumer.c`)
- Producer → Consumer: shares buffer (evidence: `Synchronization/producer-consumer.c`)
- User → Shared-memory Sender: runs (evidence: `IPC/sender.c`)
- User → Shared-memory Receiver: runs (evidence: `IPC/receiver.c`)
- Shared-memory Sender → Shared Memory: writes message (evidence: `IPC/sender.c`)
- Shared-memory Receiver → Shared Memory: reads message (evidence: `IPC/receiver.c`)
- User → Directory Operations: runs (evidence: `System_Calls/dir_ops.c`)
- User → Fork Demo: runs (evidence: `System_Calls/fork.c`)
- User → Fork and Exec: runs (evidence: `System_Calls/exec.c`)
- User → File I/O: runs (evidence: `System_Calls/file_io.c`)
- Fork and Exec → Unix-like OS: forks and executes (evidence: `System_Calls/exec.c`)
- Directory Operations → Unix-like OS: uses system calls (evidence: `System_Calls/dir_ops.c`)
- Fork Demo → Unix-like OS: uses fork (evidence: `System_Calls/fork.c`)
- File I/O → Filesystem: reads and writes (evidence: `System_Calls/file_io.c`)
- File I/O → Unix-like OS: uses file calls (evidence: `System_Calls/file_io.c`)
- User → AWK Demo: runs
