• 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

  • A thread is created to handle each new user connection.

    一个线程创建处理每个用户连接

    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

  • One (theoretical) way is to configure a separate thread per mailbox.

    种(理论上的)方法单独为每个邮箱配置线程

    youdao

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

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

    youdao

  • The solution, again, is to run everything from a different thread.

    此外解决方案在另不同线程上运行每一件事情

    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

  • The code within each thread is sent to a remote machine to be executed.

    每个线程代码发送台远程计算机执行。

    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

  • This is the function that is invoked whenever a message is sent to the thread.

    就是每当消息发送给线程时就会调用函数

    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

  • Each connection that is made will try to begin a message flow thread.

    发出的每个连接尝试开始一个消息线程

    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

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

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

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