{
  "schemaVersion": 1,
  "kind": "synthetic-worked-example",
  "unit": "ms",
  "assumptions": [
    "one unit-speed server",
    "known service requirements",
    "integer event times",
    "zero switching overhead",
    "preempt-resume without lost work",
    "fixed external arrivals",
    "ties: earlier arrival, then input order"
  ],
  "jobs": [
    {
      "id": "A",
      "arrival": 0,
      "service": 8
    },
    {
      "id": "B",
      "arrival": 1,
      "service": 1
    },
    {
      "id": "C",
      "arrival": 2,
      "service": 1
    }
  ],
  "results": [
    {
      "policy": "FCFS",
      "rows": [
        {
          "id": "A",
          "arrival": 0,
          "service": 8,
          "completion": 8,
          "response": 8,
          "waiting": 0,
          "slowdown": "1"
        },
        {
          "id": "B",
          "arrival": 1,
          "service": 1,
          "completion": 9,
          "response": 8,
          "waiting": 7,
          "slowdown": "8"
        },
        {
          "id": "C",
          "arrival": 2,
          "service": 1,
          "completion": 10,
          "response": 8,
          "waiting": 7,
          "slowdown": "8"
        }
      ],
      "timeline": [
        {
          "id": "A",
          "start": 0,
          "end": 8
        },
        {
          "id": "B",
          "start": 8,
          "end": 9
        },
        {
          "id": "C",
          "start": 9,
          "end": 10
        }
      ],
      "meanResponse": "8",
      "meanSlowdown": "17/3",
      "maxResponse": 8
    },
    {
      "policy": "SRPT",
      "rows": [
        {
          "id": "A",
          "arrival": 0,
          "service": 8,
          "completion": 10,
          "response": 10,
          "waiting": 2,
          "slowdown": "5/4"
        },
        {
          "id": "B",
          "arrival": 1,
          "service": 1,
          "completion": 2,
          "response": 1,
          "waiting": 0,
          "slowdown": "1"
        },
        {
          "id": "C",
          "arrival": 2,
          "service": 1,
          "completion": 3,
          "response": 1,
          "waiting": 0,
          "slowdown": "1"
        }
      ],
      "timeline": [
        {
          "id": "A",
          "start": 0,
          "end": 1
        },
        {
          "id": "B",
          "start": 1,
          "end": 2
        },
        {
          "id": "C",
          "start": 2,
          "end": 3
        },
        {
          "id": "A",
          "start": 3,
          "end": 10
        }
      ],
      "meanResponse": "4",
      "meanSlowdown": "13/12",
      "maxResponse": 10
    }
  ]
}
