Difference between thread and processes

Threads share the same environment between each other. They share the same value of PID, variables and even the memory space.

In conjunction, even though Process# could create its own child processes, those processes does not necessarily share the same variable and PID. Furthermore, child processes will not be allocated to its parent’s memory space. They sometime will even occupy a separate system resources for themselves.

Links to this page
  • Race Condition

    Race condition is a condition in multithreading environment where the variable’s value are dependent on the sequence of thread execution due to the nature of threads. This probably happened when two or more threads are reading from and writing to the same variable simultaneously which their sequence of execution is not guarantee.

  • Multithreading Management

    Multithreading becomes important as the number of core for the processor increases. This allows the possibility of parallelism and concurrency# along with their limitation# and short comings# with the utilisation of threads#. 202201301240# is one of the thinking model hinting on a better parallel and/or concurrency programming.

#multithreading #operating-system