# rashidk-907/processmanager architecture

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

- Interactive diagram: https://gitdiagram.com/rashidk-907/processmanager
- Repository: https://github.com/rashidk-907/processmanager

## Overview

Process Manager is a Linux command-line tool for launching and controlling child processes. The user enters commands in the shell; it parses and dispatches them to Manager, which tracks named Process instances and delegates spawning, termination, and pipe I/O. The README documents the fork/exec and stdin/stdout pipe model. The source excerpts show shell-to-manager and manager-to-process calls; Pshell’s entry point and the test files are not mapped.

Main entry points: [`Manager/src/Manager.cpp`](https://github.com/rashidk-907/processmanager/blob/main/Manager/src/Manager.cpp) (Process manager), [`Process/src/Process.cpp`](https://github.com/rashidk-907/processmanager/blob/main/Process/src/Process.cpp) (Child process control), [`Shell/src/shell.cpp`](https://github.com/rashidk-907/processmanager/blob/main/Shell/src/shell.cpp) (Command shell), [`Manager/include/Manager.hpp`](https://github.com/rashidk-907/processmanager/blob/main/Manager/include/Manager.hpp) (Named process registry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["Command-line interface"]
  node_shell["Command shell<br/>[shell.cpp]"]
  node_parser["Command parsing<br/>[shell.cpp]"]
end

subgraph group_management["Process management"]
  node_manager["Process manager<br/>[Manager.cpp]"]
  node_registry["Named process registry<br/>[Manager.hpp]"]
end

subgraph group_runtime["Process runtime"]
  node_process["Child process control<br/>[Process.cpp]"]
  node_pipeio["Pipe input and output<br/>[Process.cpp]"]
end

node_user(("User"))
node_child["Launched program"]

node_user -->|"enters commands"| node_shell
node_shell -->|"parses input"| node_parser
node_shell -->|"dispatches commands"| node_manager
node_manager -->|"tracks processes"| node_registry
node_manager -->|"spawns child"| node_process
node_manager -->|"stops child"| node_process
node_manager -->|"checks status"| node_process
node_manager -->|"sends input"| node_pipeio
node_manager -->|"reads output"| node_pipeio
node_process -->|"executes program"| node_child
node_pipeio -->|"exchanges pipe data"| node_child

click node_shell "https://github.com/rashidk-907/processmanager/blob/main/Shell/src/shell.cpp"
click node_parser "https://github.com/rashidk-907/processmanager/blob/main/Shell/src/shell.cpp"
click node_manager "https://github.com/rashidk-907/processmanager/blob/main/Manager/src/Manager.cpp"
click node_registry "https://github.com/rashidk-907/processmanager/blob/main/Manager/include/Manager.hpp"
click node_process "https://github.com/rashidk-907/processmanager/blob/main/Process/src/Process.cpp"
click node_pipeio "https://github.com/rashidk-907/processmanager/blob/main/Process/src/Process.cpp"

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_shell,node_parser,node_user toneBlue
class node_manager,node_registry toneAmber
class node_process,node_pipeio toneMint
class node_child toneIndigo
```

## Components

### Command-line interface

- [Command shell](https://github.com/rashidk-907/processmanager/blob/main/Shell/src/shell.cpp): `Shell/src/shell.cpp`
- [Command parsing](https://github.com/rashidk-907/processmanager/blob/main/Shell/src/shell.cpp): `Shell/src/shell.cpp`

### Process management

- [Process manager](https://github.com/rashidk-907/processmanager/blob/main/Manager/src/Manager.cpp): `Manager/src/Manager.cpp`
- [Named process registry](https://github.com/rashidk-907/processmanager/blob/main/Manager/include/Manager.hpp): `Manager/include/Manager.hpp`

### Process runtime

- [Child process control](https://github.com/rashidk-907/processmanager/blob/main/Process/src/Process.cpp): `Process/src/Process.cpp`
- [Pipe input and output](https://github.com/rashidk-907/processmanager/blob/main/Process/src/Process.cpp): `Process/src/Process.cpp`

### Other components

- **User**
- **Launched program**

## Connections

- User → Command shell: enters commands (evidence: `README.md`)
- Command shell → Command parsing: parses input (evidence: `Shell/src/shell.cpp`)
- Command shell → Process manager: dispatches commands (evidence: `Shell/src/shell.cpp`)
- Process manager → Named process registry: tracks processes (evidence: `Manager/include/Manager.hpp`)
- Process manager → Child process control: spawns child (evidence: `Manager/src/Manager.cpp`)
- Process manager → Child process control: stops child (evidence: `Manager/src/Manager.cpp`)
- Process manager → Child process control: checks status (evidence: `Manager/src/Manager.cpp`)
- Process manager → Pipe input and output: sends input (evidence: `Manager/src/Manager.cpp`)
- Process manager → Pipe input and output: reads output (evidence: `Manager/src/Manager.cpp`)
- Child process control → Launched program: executes program (evidence: `Process/src/Process.cpp`)
- Pipe input and output → Launched program: exchanges pipe data (evidence: `README.md`)
