threads, Process differences Introduction

Source: Internet
Author: User


Process: is a program running instance, is a system for resource allocation and scheduling of a separate unit, it includes a separate address space, resources and 1 or more threads.

Threads: can be seen as lightweight processes, the basic unit of CPU dispatch and dispatch


1, dispatch: From the above definition can be seen as a basic unit of dispatch and dispatch, one is the basic unit of resources

2, shared address space, resources: The process has its own separate address space, resources, so the sharing complex, need IPC, synchronization is simple; thread sharing the resources of the process, sharing simple, but synchronization complex, to pass locking and other measures.

3, memory, CPU: Process consumes more memory, switch complex, CPU utilization is low, thread consumes less memory, easy to switch, high CPU utilization

4, Interaction: The process does not interact with each other; a thread hanging off causes the entire process to hang.

threads, Process differences Introduction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.