• Sometimes it is perfectly sensible to spawn a new thread for each new task.

    有时每个任务生成一个线程十分明智的。

    youdao

  • While a thread is running, either uploading or downloading, you can query it to check on its status to provide the user with feedback (e.g. a progress bar).

    线程运行的时候,不管是上传还是下载可以查询进程状态并且用户一个反馈例如一个进度条)。

    youdao

  • A general solution for the problem above is to have each user thread hold a locale variable by passing the variable to the user thread during its construction.

    对于以上问题通用解决方法通过在构造变量期间将其传递给用户线程个用户都有场所变量。

    youdao

  • As mentioned above, sometimes it is perfectly sensible to spawn a new thread for each new task.

    如同上面所提到的,有时每个任务生成一个线程十分明智的。

    youdao

  • If the CANCEL statement names a program that is active to any thread, the execution fails.

    如果cancel语句指定一个程序,并且程序对于任意线程活跃的,那么执行失败

    youdao

  • A significant risk in all kinds of thread pools is thread leakage, which occurs when a thread is removed from the pool to perform a task, but is not returned to the pool when the task completes.

    各种类型线程严重风险线程泄漏中除去一个线程执行一项任务在任务完成后线程没有返回,会发生这种情况。

    youdao

  • A simple approach to this is to just generate a random number when a thread is spawned and prepend that number to all output lines.

    为此,简单方法就是派生某个线程生成一个随机数将该随机数追加所有输出行上。

    youdao

  • A better approach is to start a timer, and have timer poke the event thread every so often to go look at the staging area for updates.

    更好方法启动计时器并且使计时器不时地提醒事件线程查看中间区域,以寻找更新。

    youdao

  • Usually, the main use of a semaphore is to synchronize a thread?s action with other threads.

    通常信号主要用途同步某个线程其他线程动作

    youdao

  • The message listener service is configured to use a thread pool that has the maximum threads property set to 4.

    消息侦听器服务配置为使用最大线程属性设置4线程

    youdao

  • The interrupted status is initially false; when a thread is interrupted by some other thread through a call to Thread.interrupt(), one of two things happens.

    中断状态初始时为 false线程通过调用 Thread.interrupt() 中断一个线程时,会出现以下两种情况之一

    youdao

  • A single arrow indicates a thread contention: One thread is waiting for another thread to release a lock.

    一支单独箭头指出线程竞争个线程正在等候另一个线程释放一个锁。

    youdao

  • Each routine represents a separate "thread of execution" and is referred to as a task.

    一个程序表现得分开执行线程并且看作是一个任务。

    youdao

  • However, because there is only one AWT thread, it is undesirable to execute tasks in the AWT thread that may take a perceptible amount of time to complete.

    然而由于只有一个AWT线程因此AWT线程中执行任务可能要花费相当时间才能完成,不可取

    youdao

  • A thread is allocated to handle shutdown events.

    一个线程分配处理关机事件。

    youdao

  • Sometimes, it is very difficult to make a class thread-safe without compromising its functionality, ease of use, or performance.

    有时,要在不影响功能易用性性能情况下使成为线程安全困难的。

    youdao

  • Once the class has been resolved, the original code location is modified in a thread-safe way to access the static field's address directly because that address is then known.

    一旦解析,就会一种线程安全的方式修改原始代码位置以便直接访问静态字段地址因为此时已获知该地址。

    youdao

  • Because some processing can take a long time, we need multiple processing threads per production line to make sure that a thread is always available to work on the latest measurement.

    由于某些处理可能要占用长的时间因而需要为每生产线使用多个处理线程确保一个线程处理最新的度量结果。

    youdao

  • When one thread is executing a synchronized block, any thread waiting to enter that block is stalled.

    线程正在执行同步时,任何等待进入块的线程都将被阻塞。

    youdao

  • Instead, interruption is a way of politely asking another thread to stop what it is doing if it wants to, at its convenience.

    相反中断礼貌地请求另一个线程愿意并且方便的时候停止正在做的事情

    youdao

  • 'There is a variegated thread that goes purple to white then back to purple,' he said.

    一种杂色线,它的颜色从紫色变成白色然后又紫色”,

    youdao

  • They all output the same value illustrating that this is a thread-safe generic way to create singletons.

    所有线程返回相同,这说明一个线程安全的使用型来实现的单态模式。

    youdao

  • What you really need is a way to put a thread to sleep while it waits for some condition to be met.

    真正需要这样一种方法线程等待满足某些条件使线程进入睡眠状态。

    youdao

  • However, to avoid potentially severe thread starvation between applications, it is possible to configure a thread pool to allow thread allocation beyond maximum thread size.

    不过避免应用程序之间发生严重线程供给不足问题可以配置一个线程允许线程的分配超出最大线程大小

    youdao

  • Another possibility is to fork a separate low-priority thread during startup to perform initialization when the system is idle, although this choice requires more care to handle synchronization.

    还有一种可能启动时派生单独低优先级线程系统空闲时再完成初始化不过这种方法需要特别注意处理好同步。

    youdao

  • A Runnable is submitted to a custom thread pool.

    可运行线程提交定义线程池。

    youdao

  • In a multiprocessing environment, the processing time for a thread is related to the availability of system resources and synchronization with other threads.

    处理环境中线程处理时间可用系统资源以及其他线程同步有关

    youdao

  • A first-pass solution to this is to store up encoded messages while a background thread tries to upload them.

    初步解决方案后台线程试图上传编码消息对这些消息进行存储

    youdao

  • Each processor on the CPU has its own CSA (current save area) pointer that points to the MST that is to be used when a thread or interrupt handler is interrupted or swapped due to context switch.

    CPU每个处理器都拥有自己CSA(当前保存)指针指向线程中断处理程序由于上下文切换而中断或交换使用MST

    youdao

  • The system detects that the P3 thread is holding a lock required by the P1 thread and elevates its priority to P1 until the lock is released.

    如果系统检测P 3线程正在持有一个P 1线程需要,则会P 3线程优先级置为P1,直到释放了锁。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定