1.5.5

Memory & Process Management

Test yourself

Memory and Process Management

As with all hardware in the computer, the memory (RAM) and central processing unit (CPU) must be managed by a part of the operating system.

Illustrative background for Purpose of memory managerIllustrative background for Purpose of memory manager ?? "content

Purpose of memory manager

  • The memory manager controls the allocation of random access memory (RAM) to each running process.
  • If the memory manager fails to manage memory well, then the computer will slow down and might crash.
  • The memory manager moves data from secondary storage into RAM.
    • The data can be removed from RAM when no longer needed.
Illustrative background for Purpose of process managerIllustrative background for Purpose of process manager ?? "content

Purpose of process manager

  • Modern operating systems allow users to run multiple programs at once.
  • In reality, a CPU can only execute one process at a time. So the CPU must switch between processes so quickly that it seems that they are running simultaneously.
Illustrative background for Memory allocationIllustrative background for Memory allocation ?? "content

Memory allocation

  • The Operating System assigns memory in RAM when an application/process starts.
  • If an application/process requires more memory, the OS will assign it more memory. The OS must be careful not to overwrite memory allocated to any other applications/processes running.
Illustrative background for MultitaskingIllustrative background for Multitasking ?? "content

Multitasking

  • Modern operating systems allow multiple applications to run at once. This is known as multitasking.
  • For this to work, the operating system must manage how memory and CPU time is allocated to each running process.
Illustrative background for Multitasking (cont.)Illustrative background for Multitasking (cont.) ?? "content

Multitasking (cont.)

  • If there is only one CPU, the tasks of each different application/process are managed by the OS to appear as if multiple are running at the same time.
    • It does that by quickly swapping between the instructions of the different applications/processes running.
  • The OS assigns processes/applications to each core so that more than one set of instructions is being executed at the same time.

Jump to other topics

1Computer Systems

1.1Systems Architecture

1.2Memory & Storage

1.3Computer Networks, Connections & Protocols

1.4Network Security

1.5Systems Software

1.6Ethical, Legal, Cultural & Environmental Concern

2Computational Thinking, Algorithms & Programming

2.1Algorithms

2.2Programming Fundamentals

2.3Producing Robust Programs

2.4Boolean Logic

2.5Programming Languages & IDEs

Unlock your full potential with Seneca Premium

  • Unlimited access to 10,000+ open-ended exam questions

  • Mini-mock exams based on your study history

  • Unlock 800+ premium courses & e-books

Get started with Seneca Premium