Thread in depth 1: The basic

Posted 灰色世界

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Thread in depth 1: The basic相关的知识,希望对你有一定的参考价值。

Every single thread has the follow elements:

  1. Thread Kernel Object:TKO is a data structure.Everytime when a thread is created,a TKO will be assigned and initialized.TKO maintains a property of descriping the thread, and thread context.
  2. Thread Environment Block,which is related to exception.
  3. User-Mode Stack: this stack stores the local variables and arguments in the method,and the returnning address of the method,so the thread can move on from this address when returned from the method.
  4. Kernel-Mode Stack:a stack which managed by OS kernel function.

Thread context switch causes a bad performence.Here is how a context switch work :OS will move the data on CPU‘s register to the current thread‘s context, then move the target thread‘s context data into the cpu register so that the cpu can do its work.

以上是关于Thread in depth 1: The basic的主要内容,如果未能解决你的问题,请参考以下文章

《Depth from Videos in the Wild:Unsupervised Monocular Depth Learning from Unknown Cameras》论文笔记

An In-Depth Look at the HBase Architecture

[转]Inside the Storage Engine: Ghost cleanup in depth

Exception in thread "main" NoNodeAvailableException[None of the configured nodes are avail

ensure that AopContext.currentProxy() is invoked in the same thread as the AOP invocation context(示例

tomcat启动控制台报Exception in thread ''main".......“Could not find the main class:.....Boots