Review of Operating System Content and Operating System Content

Source: Internet
Author: User

Review of Operating System Content and Operating System Content

Thread: The thread is the execution unit in the process and the minimum unit for CPU allocation.

Components: thread stack and Kernel Object

The thread stack is the resource required to store threads.

The kernel object is a private block in the operating system. It is used to manage the current thread.

End mode: force-killing or natural exit

Exit multiple threads in the same process: Use a variable.

Exit of multiple threads in different processes: Cross-process operations can be performed using messages and events.

Thread status: Ready, executed, blocked, and killed

Inter-thread communication: Variable

Message

Thread Synchronization: To solve thread concurrency.

Synchronous method: Atomic access, using the keyword volitale

Critical section (key segment), normal mode or rotation lock, and asynchronous processing (synchronous and asynchronous)

Mutex (Kernel Object) features: the mutex is more secure. Cross-process, while the critical zone can only be in the same process

Event

Semaphores (with quantity control)

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.