Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

What is the main difference between process and thread?

Pragya Keshap answered on February 4, 2023 Popularity 9/10 Helpfulness 2/10

Contents


More Related Answers

  • process vs thread example
  • Can one thread block the other thread?
  • Can we make main() thread as daemon?
  • Can we make main() thread as daemon?
  • Can you check if following code is thread-safe?
  • what is a thread in os
  • thread function

  • What is the main difference between process and thread?

    0

    As such both process and thread are independent sequences of

    execution.

    The main difference is that a thread runs in a shared memory space,

    where as a process runs in its own memory space.

    A process runs the execution in an environment provided by the

    operating system. A process has its own set of private resources

    (e.g. memory, open files, etc.).

    A thread lives within a process and shares the resources likememory, open files etc. with the other threads of the same process.

    This ability to share resources between different threads makes

    thread more suitable for tasks where performance is a significant

    factor.

    https://byjus.com/gate/difference-between-process-and-thread/#:~:text=In%20the%20world%20of%20computer,handled%20independently%20by%20a%20scheduler.

    Popularity 9/10 Helpfulness 2/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 04 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.