有时,为每个新任务生成一个新线程是十分明智的。
Sometimes it is perfectly sensible to spawn a new thread for each new task.
仅当您知道存在足够的空闲系统资源时才调整线程的数量。
Only adjust the number of threads if you know that there are enough spare system resources.
您已经了解了如何更改进程的优先级,那么对于线程又该如何操作呢?
Now that you know how to change the priority of processes, how do you do this with threads?
这些单元与基准时间寄存器相同,并且两个线程的PURR值的总和等于基准时间寄存器的值。
The units are the same as the time base register and the sum of the PURR values for both threads is equal to time base register.
然而,线程只是并行冰山的一角。
Threads, however, are just the tip of the concurrent iceberg.
因此,主线程有时也被叫做UI线程。
As such, the main thread is also sometimes called the UI thread.
线程支持,含线程同步功能。
Threading support has to be implemented including synchronization features.
这些对象只供线程组中的线程访问。
These objects are accessible only by threads within the group of threads.
调优适当的线程池以限制并发线程的数量。
Tuning the appropriate thread pools to restrict the number of concurrent threads.
线程化方式简单地冻结并存储现有的线程。
The threading approach simply freezes and stores an existing thread.
将可运行线程提交到自定义线程池。
多线程下载加快下载速度
允许使用原始线程创建这两个RT线程。
如果线程池中有可用的线程,它就会被使用。
等待这些线程完成。
这阻塞了主线程但是在另一个线程上执行代码。
This blocks the main thread but executes the code on another thread.
POSIX线程提供了线程化机制和共享内存。
POSIX threads provide the threading mechanism as well as Shared memory.
由于线程1目前持有此锁,线程2被阻断。
Because thread 1 currently holds this lock, thread 2 blocks.
在需要线程安全的情况下,请使用线程安全视图。
In situations where you know you need thread safety, use a thread-safe view.
内核线程和应用程序线程需要相互进行握手。
The kernel thread and the application thread will handshake with each other.
可运行线程在J2EE工作线程上运行。
线程1被线程2预占。
应用推荐