"Internet Exam Series-1" process with thread

Source: Internet
Author: User

I. Characteristics of the process

1. Structural Features: Program section, related data segment and PCB (Process Control block-)

2, Dynamic: The essence of the process is the process of the entity's implementation process, process entities have a certain period of life. The program is static.

3. Concurrency: Multiple process Entities are stored in memory and can be run concurrently over a period of time.

4. Independence: The process entity is a basic unit which can run independently, allocate resources independently and accept the dispatch independently.

5. Asynchrony: Processes move forward at their own, unpredictable speed.

Ii. definition of the process

Process is the process entity running process, is a system for resource allocation and scheduling of an independent unit.

Iii. three basic states of the process

1. Ready state: Multiple queued-ready queues.

2. State of execution.

3, blocking state.

4. Suspend state.

Iv. Process Control:

1. Process diagram: The child process can inherit the resources owned by the parent process, and the child process will return the resources obtained from the parent process to the parent process when it is revoked. All child processes must be revoked when the parent process is revoked.

2, Process creation: Allocate memory space to know the size of the memory required by the process. An address space that can share an existing memory.

V. Inter-process communication:

Advanced communication mechanism: Shared memory system, message delivery system, Pipeline communication system (shared pipe file).

Six, thread

1, scheduling: The thread as the basic unit of dispatch and dispatch, basically do not have resources.

2. Resources: The resources of the process are shared by almost no resources and other threads of the unified process.

3. A process in a multithreaded OS is not an executable entity.

4. Synchronization and communication between threads: Mutex, condition variable, semaphore mechanism.

"Internet Exam Series-1" process with thread

Related Article

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.