Thread context switching is NOT expensive.
线程上下文切换的代价并不大。
Why do I get a thread context switch every time I synchronize with a mutex?
为什么我每次我得到一个线程上下文切换同步与互斥?。
The parent of this class loader will be the class loader of the current thread context.
类加载器的父类加载器将是当前线程上下文的类加载器。
Conceptually, a thread context switch can be viewed as a process changing its state.
从概念上讲,一次线程上下文切换相当于进程改变它的状态。
Softirqs were used for time-critical processing (software interrupts) in the kernel thread context.
软中断用于在内核线程上下文中处理时间要求严格的处理过程(软件中断)。
This state includes not only the processor registers (the thread context) but also the address space accessible to the thread (the process context).
这个状态不但仅包含了处理器寄存器(进程上下文)而且还包含了线程可访问的地址空间(进程上下文)。
Each thread maintains exception handlers, a scheduling priority, and a set of structures the system USES to save the thread context until it is scheduled.
每个线程都维护异常处理程序、调度优先级和一组系统用于在调度该线程前保存线程上下文的结构。
Other applications for ThreadLocal in which pooling would not be a useful alternative include storing or accumulating per-thread context information for later retrieval.
其它适合使用ThreadLocal但用池却不能成为很好的替代技术的应用程序包括存储或累积每线程上下文信息以备稍后检索之用这样的应用程序。
When the system switches from one thread to another, it saves the thread context of the preempted thread and reloads the saved thread context of the next thread in the thread queue.
当系统从一执行绪切换至另一执行绪时,它会储存先佔执行绪的执行绪内容,然后重新载入执行绪伫列中下一个执行绪的已存执行绪内容。
This function is invoked from the I/O processor thread context, hence should be implemented in a way that it consumes minimal amount of time, as the same thread handles multiple sessions.
调用此函数从I /O处理器线程上下文,因此应该采取一种方式,它消耗最少量的时间,相同的线程处理多个会话执行。
In addition, each thread maintains exception handlers, a scheduling priority, and a set of structures in which the system saves the thread context while the thread is waiting to be scheduled.
另外,每个线程都维护异常处理程序、安排优先级和一组结构,线程等待安排时系统在这些结构中保存线程上下文。
This context stores the subject and other security information for the executing thread.
这个上下文为正在执行的线程存储主题和其他安全信息。
A single process can work with multiple SPU contexts, but to run on more than one SPU at a given time, the process needs to contain at least one thread for each running SPU context.
一个进程可以使用多个spu上下文,但是要在每个给定的时间点上在多个SPU上运行,这个进程需要包含至少一个每个正在运行的SPU上下文所使用的线程。
Enables multiple collaborating objects to participate in a single transaction, by passing the transactional context as part of the thread.
通过将事务上下文作为线程的一部分进行传递,以允许多个合作对象参与单个事务。
This method will return null if the focus owner is not in the same context as the calling thread.
如果该焦点所有者未和调用线程处于同一个上下文中,那么该方法会返回空。
Due to the overhead involved in context switching to a thread or process for any amount of work, systems with small-scope granularity are often inefficient and suffer from low performance.
由于任意工作量的一个线程或进程的上下文切换涉及到的开销较大,小粒度级的系统往往效率低下且遭遇低性能问题。
This is achieved by applying and removing the J2EE context information on and off the thread when the application logic begins and ends.
当应用程序逻辑开始和终止时,这可以通过应用和删除线程内外的J2EE上下文信息来完成。
In these cases, it is desirable to have a component-scoped thread pool, with a fixed J2EE context on each thread.
在这些情况下,需要一个组件范围的线程池,并在每个线程上具有固定的J2EE上下文。
However, the polling thread will run in a normal process context.
然而,轮询线程是在一个普通进程上下文中运行的。
Each worker thread has the J2EE context of the thread pool creator component applied to it.
每个工作线程都有适用于它的线程池创建程序组件的J2EE上下文。
The server might also want to associate various forms of context with a thread that would be lost when a new thread is spun off.
服务器也可能想把各种形式的上下文都关联到一个线程上,因为产生新线程时,上下文可能会丢失。
When an SPU thread gets created, the library will create a new thread that manages the SPU context asynchronous to the main thread.
在创建一个SPU线程时,这个库就创建一个新线程,它负责管理与主线程异步的spu上下文。
When a transaction is initiated, the transaction context is associated with the executing thread.
当事务启动时,事务上下文与执行线程关联在一起。
And if each thread (ergo network connection) is busy, then the context switching to each thread can be significant.
另外,如果每个线程都忙于处理网络连接,线程之间的上下文切换会很频繁。
As the code in user thread constructor still runs in the caller thread's context, we have a chance to inherit a locale object from the servlet thread when the user thread is being constructed.
因为用户线程构造器中的代码仍然在访问线程的环境下运行,所以在构造用户线程时,我们还有机会从服务线程继承场所对象。
The J2EE context stored with the WWEC is applied to the thread.
将与WWEC 一起存储的J2EE上下文应用到线程。
The context of the thread must be changed each time the thread is reused, which can cause a significant overhead to applications that may be doing very little activity on those threads.
每次重用线程时,都必须更改线程的上下文,对于可能很少在这些线程执行活动的应用程序,开销会特别大。
Out of the box you one based on.net's thread pool system and one that USES the synchronization context framework.
开箱即用的实现就是。NET的线程池系统以及使用了异步上下文的框架。
This requires a context switch to the kernel thread to handle the task of moving data to and from disk.
这要求上下文切换到内核线程,以处理将数据移动到磁盘以及从磁盘移出数据的任务。
This requires a context switch to the kernel thread to handle the task of moving data to and from disk.
这要求上下文切换到内核线程,以处理将数据移动到磁盘以及从磁盘移出数据的任务。
应用推荐