{
  "id": "bbg-p0126-concurrency-runtime-and-scheduling-concurrency",
  "title": "Program Process Thread Relationship",
  "chapter": "concurrency-runtime-and-scheduling",
  "batch": "29",
  "rank": 284,
  "sourcePage": 126,
  "sourcePointer": "p. 126",
  "status": "accepted",
  "reviewerStatus": "reviewed",
  "fidelityScore": 0.9,
  "canvas": {
    "width": 960,
    "height": 640
  },
  "fireworksTechGraph": {
    "style": "style-1-flat-icon",
    "diagramType": "architecture",
    "topologyNotes": [
      "source page render inspected",
      "extracted page text inspected",
      "source page render inspected",
      "preserve relationship: program is passive instructions on disk, launched processes live in RAM, each process can own multiple threads",
      "omit application icons and task-manager screenshot details"
    ],
    "publicBoundary": [
      "original vector output",
      "no source pixels",
      "no source mark or long wording"
    ]
  },
  "callouts": [],
  "sourceReview": {
    "conceptAnchors": [
      "concept: program on disk",
      "concept: instructions",
      "concept: process in RAM",
      "concept: multiple processes per program",
      "concept: threads inside process"
    ],
    "labelSource": "curated",
    "semanticStatus": "reviewed"
  },
  "groups": [
    {
      "id": "disk",
      "label": "Disk",
      "x": 64,
      "y": 128,
      "w": 230,
      "h": 300
    },
    {
      "id": "ram",
      "label": "RAM",
      "x": 364,
      "y": 128,
      "w": 230,
      "h": 300
    },
    {
      "id": "threads",
      "label": "Execution units",
      "x": 664,
      "y": 128,
      "w": 230,
      "h": 300
    }
  ],
  "shapes": [
    {
      "id": "program",
      "kind": "rect",
      "label": "Program",
      "detail": "executable file",
      "x": 112,
      "y": 164,
      "w": 122,
      "h": 58,
      "tone": "red"
    },
    {
      "id": "instructions",
      "kind": "table",
      "label": "Instructions",
      "detail": "passive code",
      "x": 108,
      "y": 300,
      "w": 130,
      "h": 76,
      "tone": "red"
    },
    {
      "id": "processA",
      "kind": "rect",
      "label": "Process A",
      "detail": "address space",
      "x": 414,
      "y": 156,
      "w": 122,
      "h": 54,
      "tone": "teal"
    },
    {
      "id": "processB",
      "kind": "rect",
      "label": "Process B",
      "detail": "address space",
      "x": 414,
      "y": 252,
      "w": 122,
      "h": 54,
      "tone": "teal"
    },
    {
      "id": "processC",
      "kind": "rect",
      "label": "Process C",
      "detail": "address space",
      "x": 414,
      "y": 348,
      "w": 122,
      "h": 54,
      "tone": "teal"
    },
    {
      "id": "thread1",
      "kind": "rect",
      "label": "Thread 1",
      "detail": "within process",
      "x": 718,
      "y": 194,
      "w": 122,
      "h": 54,
      "tone": "orange"
    },
    {
      "id": "thread2",
      "kind": "rect",
      "label": "Thread 2",
      "detail": "shared memory",
      "x": 718,
      "y": 308,
      "w": 122,
      "h": 54,
      "tone": "orange"
    }
  ],
  "connectors": [
    {
      "from": "program",
      "to": "instructions",
      "label": "contains",
      "flow": "data"
    },
    {
      "from": "program",
      "to": "processA",
      "label": "launch",
      "flow": "main"
    },
    {
      "from": "program",
      "to": "processB",
      "label": "launch",
      "flow": "main"
    },
    {
      "from": "program",
      "to": "processC",
      "label": "launch",
      "flow": "main"
    },
    {
      "from": "processB",
      "to": "thread1",
      "label": "owns",
      "flow": "control"
    },
    {
      "from": "processB",
      "to": "thread2",
      "label": "owns",
      "flow": "control"
    }
  ]
}
