79708238

Date: 2025-07-20 17:40:19
Score: 1
Natty:
Report link

A process is an independent program that runs in its own memory space. A thread is a smaller unit of a process that shares the same memory with other threads in the same process.

On a single-core processor:
Only one task can run at a time. The CPU switches between processes or threads quickly (context switching) to give the appearance of parallelism.

On a dual-core processor:
Two tasks can truly run at the same time. One process or thread can run on each core, allowing real parallel execution.

Context switching:

Key differences:

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sneha Gunti