Threads and processes

Source: Internet
Author: User

1, Thread: A collection of instructions, the OS to schedule the smallest unit of CPU is the thread,

The thread is contained in the process and is the actual operating unit in the process.

2, different application software uses different memory, otherwise can access each other, there is no security. The memory of each program is independent.

3. Process: A collection of various resources of a program is called a process.

4. Process to operate the CPU, you must first create a thread. The operating CPU is implemented by threads.

5. The process is the house, the thread is the people in the room, is living, table, space and so on. The process cannot execute and the process wants to execute and must first create at least one thread.

6.CPU itself is not the data, the CPU itself is only responsible for the operation. Multiple threads can share a single CPU.

7. A process can consist of one or more threads. All the threads in a process has the same view of the memory.

All threads in the same process share the same block of memory space. This memory space contains: file descriptors, security authentication information, and so on.

8. An instance of an executed program is called a process.

Threads and processes

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: info-contact@alibabacloud.com 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.