这些句柄可能全局,每进程,或每线程。
These handles may be available globally, per process, or per thread.
每线程清除要执行。
进程交换(注入)一个新的线程,每线程初始化要执行。
The process is spawning a new thread. Any per-thread initialization should be performed.
每线程方法的激活栈使用主机操作系统的堆栈和线程模型。
Per-thread method activation stacks are represented using the host operating system's stack and thread model.
这样,我们可以认为ThreadLocal允许我们创建每线程单子。
In this way, we can think of a ThreadLocal as allowing us to create a per-thread-singleton.
您可以通过前面讲述的每线程单子技术用ThreadLocal变量来存储各种每请求(per - request)上下文信息。
You can use ThreadLocal variables to store any sort of per-request context information using the per-thread-singleton technique described earlier.
HP -UX 11.31具有每线程锁,因此HP - UX的最新版本的性能显著提高了——与11iv2相比,最多能够提高30%。
HP-UX 11.31 has per-thread locks and as such there are significant performance enhancements with the latest version of HP-UX — up to 30% more performance compared to 11iv2.
其它适合使用ThreadLocal但用池却不能成为很好的替代技术的应用程序包括存储或累积每线程上下文信息以备稍后检索之用这样的应用程序。
Other applications for ThreadLocal in which pooling would not be a useful alternative include storing or accumulating per-thread context information for later retrieval.
如清单3所示,通过使用“单子”中的ThreadLocal,我们就能让我们的程序中的任何类容易地获取每线程Connection的一个引用。
By using a ThreadLocal in our Singleton, as shown in Listing 3, we can allow any class in our program to easily acquire a reference to a per-thread Connection.
而且,因为每线程值的引用被存储在自已的Thread对象中,所以当对Thread进行垃圾回收时,也能对该Thread的每线程值进行垃圾回收。
Also, because the references to the per-thread values are stored in the owning thread object, when the thread gets garbage collected, so can its per-thread values.
为获得最佳线程数,需要经过一些试验和失败,但一个很好的经验法则是,每100个并发会话分配一个线程。
It takes a bit of trial and error to get the optimal number of threads, but a good rule of thumb is 1 thread for every 100 concurrent sessions.
缺省情况下,池维护的线程每180秒(3分钟)运行一次,但是通过设置连接池获得时间属性可以更改此值。
By default, the pool maintained thread runs every 180 seconds (3 minutes), although this value can be changed by setting the connection pool Reap time property.
AIXV7.1在基本内核、驱动程序和库中增强了可伸缩性,能够扩展到最多1024路的分区,分区有256个处理器核,每核有四个硬件线程。
AIX V7.1 adds scalability enhancements to the base kernel, drivers and libraries to scale up to 1024-way partitions, which are partitions with 256 processor cores and four hardware threads per core.
采样CPU负载、进程CPU负载、内存使用和每5 - 10秒的线程计数,其带来的额外一两个毫秒的影响可被忽略。
If you sample your CPU load, process CPU load, Memory Usage and Thread count once every 5-10 seconds, the added millisecond or two incurred is negligible.
不幸的是,该项目不是并行构建的——就像以前一样每一部分都是单独构建的——但是每个项目的实际编译能够使用多线程的方式。
Unfortunately, the projects aren't built in parallel - each one is built individually as before - but the actual compilation of each project will be able to use multiple threads.
第一个变化是将最大线程数从每处理器25个线程增加至250个线程。
The first change is increasing the default maximum number of threads from 25 per processor to 250 pre processor.
一种解决方法是增加一个变量,每创建一个新的线程该变量就加1,每终止一个线程该变量就减1,当该变量再次为零时,就关闭整个进程。
One way would be to increment a variable every time a thread is created, and decrement it whenever a thread terminates. When it reaches zero again, close the whole process.
通过软中断机制来调度微线程,当机器处于严重软件中断负荷之下时, 可通过ksoftirqd(一种每CPU内核线程)软中断来调度。
Tasklets are scheduled through the softirq mechanism, sometimes through ksoftirqd (a per-CPU kernel thread), when the machine is under heavy soft-interrupt load.
在任意给定时间,每一线程都在一个应用程序域中执行。
At any given time, every thread is executing in an application domain.
在任意给定时间,每一线程都在一个应用程序域中执行。
At any given time, every thread is executing in an application domain.
应用推荐