Another common threading model is to have a single background thread and task queue for tasks of a certain type.
另一个常见的线程模型是为某一类型的任务分配一个后台线程与任务队列。
This breaks the one thread per request model, as the thread for a request never gets freed up.
这打破了每个请求使用一个线程的模型,因为用于一个请求的线程一直没有被释放。
Several thread pool implementations exist that will work fine with this model.
现有的几个线程池实现可以很好地与此模式一起使用。
The request/response cycle lends itself to the classic one thread per connection model.
请求/响应周期使它成为了经典的模型,即每个连接使用一个线程。
In this case, the delegation model is a proper graph (with cycles), and so a deadlock can occur as a result of particular class relationships and thread usage.
在本例中,委托模型是一个正确的图(带有循环),所以死锁的发生可能是使用特定的类关系和线程的结果。
Thus it is relatively straightforward to implement the classic one thread per connection model.
因此实现典型的每个连接一个线程的模型便非常简单。
While functionally equivalent to older library code at the thread group level, the ease of use and flexibility in the new model far exceeds any time requirements to adjust code to the newer way.
虽然在线程组级别上,新的库代码的功能与原来库代码的相同,但新模型中的易用性和灵活性远远超出了将代码调整为更新的方式所需的时间。
In this model, called Pipelining, the main thread is used to loop through the results as they are produced by the other threads.
在这个被称为“并行管道”的模型下,主线程将会在另一个线程产出结果的同时进行循环处理。
The logic for each thread follows the model of execute>wait for next period>execute>wait for next period, and so on.
每个线程的逻辑遵循执行 >等待下一周期 > 执行 > 等待下一周期……的模式。
In the large memory model, the native heap starts at segment 3; segment 2 is only used for the primordial (initial) thread stack.
在大内存模型中,本机堆从分段3开始;分段2仅用于原始(初始)线程栈。
Because of the single thread model described above, it's vital to the responsiveness of your application's UI that you do not block the UI thread.
根据对以上单线程模式的描述,要想保证程序界面的响应能力,关键是不能阻塞UI线程。
Another R5 benefit is the result of the worker thread model that we are using.
R5的另一个优点就是我们正在使用的worker线程模型带来的结果。
The model needs to include a mechanism for passing root objects to each iteration that can be used to store and retrieve objects that have a lifetime of Retain Thread Group or Retain Thread.
模型需要包含一种机制,将根对象传递给用于存储和检索生存期为RetainThreadGroup或Retain Thread的对象的每个迭代。
In the classic servlet model, an open connection means a dedicated thread is doing nothing but waiting until it needs to update the client in response to an event.
在典型的servlet模型中,一个打开的连接意味着一个不执行任何操作的专用线程,它将一直等待,直到在响应事件时更新客户端。
Regardless of whether or not you use AsyncTask, always remember these two rules about the single thread model.
无论您是否使用asynctask,都要记住单线程模型的两个规则。
This enables a 1:1 threading model without limitations on the number of threads being created (since a new kernel thread is created for every user thread).
这样就可以实现一个不受创建的线程数限制的1:1线程模型(因为每一个新的内核线程都是为一个用户线程而创建)。
At first, it may feel like the spawned thread isn't responding to the messages quickly enough, but remember, in an actors model, you don't deal with threads, per se, just message passing.
初看上去,似乎是生成的线程无法足够快地响应消息,但是要记住在actor模型中并不处理线程,只处理消息传递。
AWT and Swing use this model, in which there is a GUI event thread, and all work that causes changes in the user interface must execute in that thread.
AWT和Swing就使用这个模型,在这个模型中有一个GUI事件线程,导致用户界面发生变化的所有工作都必须在该线程中执行。
Now, in 9.5 there is uniformity in the process model of DB2 as EDUs are now thread based on Linux, UNIX, and Windows environments.
而在9.5中,DB2的进程模型得到统一,现在EDU在Linux、UNIX和Windows环境中都是线程。
Each thread can then handle its event using a synchronous programming model.
每一个线程能处理他的事件用同步的程序模型。
The pipeline model divides up a task into a series of steps, and passes the results of one step on to the thread processing the next.
流水线模型将一个任务划分成一系列的步骤,每个线程的处理结果都传给下一个线程。
Methods: to make the model of cerebral ischemia and after restoration of blood flow with thread embolism, and measure the area of cerebral infarction and observe cerebral pathologic change.
方法:采用线栓法引起大鼠局灶性脑缺血模型,在缺血后进行再灌注,测定脑梗死面积并进行神经缺陷评分及观察病理组织学改变。
Unfortunately, it violates the single-threaded model for the UI: the Android UI toolkit is not thread-safe and must always be manipulated on the UI thread.
但不幸的是,上面的代码违背了UI线程的单线程模式:Android UItoolkit不是线程安全的,所以对UI的操作都应该在主ui线程中进行。
It leverages the intelligence of a digital product or production model to create twins between the physical and digital worlds, weaving a digital thread through product and production lifecycles.
数字化技术利用数字化产品或生产模式的智能创建实体和虚拟世界的映射,并将一条数字主线植入产品和生产的生命周期之中。
Under the new memory model, this "fix" to double-checked locking renders the idiom thread-safe.
在新的内存模型中,对双重检查锁定的这个“修复”使 idiom 线程安全。
A common thread throughout is that the Flexnerian model of medical education may now be in for changes nearly as profound as those Flexner proposed 100 years ago.
贯穿整个讨论的主线是Flexnerian式模型的医药教育可能现在仍然是为了改变现有系统,而且几乎与100多年前Flexner提出这个模型时一样具有深刻意义。
When your asynchronous data comes in update the model, then dispatch a block to update the UI on the main thread.
当你的异步数据来更新模型,然后派遣一块更新主线程的UI。
In multiple-threaded dispatching model, the thread fetching the events from the queue launches another thread called task thread, and hand the event over to it for processing.
在多线程分发模型中,从队列中获取事件的线程启动另一个被称作任务线程的线程,并把事件交给它处理。
With the numerical simulation of heavy-duty diesel engine to strengthen performance, a CAD assembly model of cylinder head bolt is built based on the thread.
结合大功率柴油机性能强化的数值计算,在考虑螺纹的基础上建立了气缸盖螺栓的CAD装配体模型;
With the numerical simulation of heavy-duty diesel engine to strengthen performance, a CAD assembly model of cylinder head bolt is built based on the thread.
结合大功率柴油机性能强化的数值计算,在考虑螺纹的基础上建立了气缸盖螺栓的CAD装配体模型;
应用推荐