{
  "script": "title: How often is the CPU idle?\ndiscipline: informatics\nlanguage: en-GB\norg_line: Students for students\nseries_code: OS\nseries_line: Operating Systems\nepisode_line: Problem 1\n---\nA computer has a limited amount of main memory, and many programs want to run at the same time. The operating system decides how many of them are in memory together. In this lesson we answer one question: how often does the processor have nothing to do?\n\nFirst, a few terms. A process is a program that is running. It does two things, again and again. It computes, and for that it needs the processor. Then it waits for input or output, such as a disk or the network, and during that time it does not use the processor. The share of its time that a program spends waiting is called p.",
  "directions": {
    "scenes": [
      {
        "first_sentence": 1,
        "last_sentence": 3,
        "title": "The question",
        "scene_type": "text.bullets",
        "data": {
          "heading": "The question",
          "points": ["Limited main memory", "Many programs at the same time", "How often is the CPU idle?"],
          "icon": "processor"
        },
        "reveal_phrases": ["a limited amount", "many programs want", "how often does the processor"]
      },
      {
        "first_sentence": 4,
        "last_sentence": 9,
        "title": "What a program does",
        "scene_type": "text.columns",
        "data": {
          "heading": "What a program does",
          "columns": [
            { "title": "A process", "items": ["A program that is running"], "icon": "code" },
            { "title": "Computes", "items": ["Needs the CPU"], "icon": "processor" },
            {
              "title": "Waits for I/O",
              "items": ["Disk, network", "Does not use the CPU", "Share of its time: p"],
              "icon": "waiting"
            }
          ]
        },
        "reveal_phrases": ["A process is", "It computes", "Then it waits"]
      }
    ]
  }
}
