0
0
Intro to Computingfundamentals~10 mins

Process management (running programs) in Intro to Computing - Draw & Build Visually

Choose your learning style9 modes available
Draw This - beginner

Draw a flowchart showing the basic steps of process management when running a program: starting from the user launching the program, loading it into memory, executing instructions, waiting for input/output if needed, and finally terminating the process.

10 minutes
Hint 1
Hint 2
Hint 3
Hint 4
Grading Criteria
Start and End symbols present
Process steps represented by rectangles
Decision points represented by diamonds
Correct flow from start to termination
Includes loading, executing, I/O wait, and termination steps
Decision for input/output needed present
Decision for program completion present
Flow lines correctly connect all steps and decisions
Solution
  +-------+
  | Start |
  +---+---+
      |
      v
+-----------------+
| User launches    |
| the program      |
+--------+--------+
         |
         v
+-----------------+
| Load program    |
| into memory     |
+--------+--------+
         |
         v
+-----------------+
| Execute          |
| instructions     |
+--------+--------+
         |
         v
+-----------------+
| Need input/output?|
+--------+--------+
         |
    +----+----+
    |         |
   Yes       No
    |         |
    v         v
+--------+  +--------+
| Wait   |  | Continue|
| for I/O|  | execution|
+--------+  +--------+
    |         |
    +----+----+
         |
         v
+-----------------+
| Is program done? |
+--------+--------+
         |
    +----+----+
    |         |
   No        Yes
    |         |
    v         v
+-----------------+
| Continue        |
| executing       |
+--------+--------+
         |
         v
  +------+------+
  | Terminate   |
  | process     |
  +------+------+
         |
         v
      +--+--+
      | End |
      +-----+

This flowchart starts with the user launching a program. The program is then loaded into memory. The CPU begins executing the program's instructions. At each step, the process checks if input/output is needed. If yes, it waits for the I/O operation to complete before continuing. The process also checks if the program has finished running. If not, it continues executing instructions. When the program finishes, the process terminates and the flow ends.

This models how an operating system manages running programs by loading, executing, waiting for I/O, and terminating processes.

Variations - 2 Challenges
[intermediate] Draw a flowchart for process management including handling an error during execution that causes the process to terminate early.
[advanced] Draw a detailed flowchart showing process management with multiple I/O waits and a loop for repeated user inputs until the user chooses to exit.