Because the pattern demonstrated above is so effective, it is relatively simple to extend it by chaining additional thread pools with queues.
因为上面介绍的模式非常有效,所以可以通过连接附加线程池和队列来进行扩展,这是相当简单的。
In this example, I don't focus on other issues related to this pattern, such as synchronization to make it thread safe.
在此实例中,我并没有针对其他与此模式相关的问题,如保持同步以确保线程安全。
Since it is thread safe by design, you might cache it in a public static final variable, or wrap it in a singleton pattern after creation for later access.
因为根据设计它是线程安全的,创建它之后可以把它缓存在一个公共静态最终变量中,或者包装在单实例模式中以供以后访问。
Fine-grained components also tend to interact on the same thread of execution, which reduces the overhead of a chatty interaction pattern.
细粒度组件还趋向于在同一执行线程上交互,从而减少通信量较多的交互模式的开销。
While this basic pattern is relatively simple, it can be used to solve a wide number of problems by chaining queues and thread pools together.
尽管这个基本模式比较简单,但可以通过将队列和线程池连接在一起,以便将这个模式用于解决各种各样的问题。
When the hooks align with one of the punched holes, they are able able to pass through the hole with a thread, thus creating the required stitch to form the pattern.
吊钩对准一个打孔时,可以带线过孔,织出纹样里的一针来(译者注,这里正确的描述应该是:每个孔的位置对应一根经线,根据打孔或不打孔决定提或不提起经线,并交织一次)。
The Participant pattern lets you make the transition from simple aspects to more complex ones such as those for transaction management, thread safety, security, etc.
Participant模式可以将简单的方面转换为更复杂的方面,如负责事务管理、线程安全、安全性等方面。
This is the basis of the Comet pattern, with Jetty handling five concurrent requests on one thread, thanks to Continuations.
这是Comet模式的基本原理,Jetty使用这种原理在一个线程内处理5 个并发请求,这都是 Continuations 的功劳。
Sew a running stitch (red thread in figure A) on the toe, as marked on the pattern (later it will be pulled to form gathers.)
根据模板上画好的痕迹在脚趾部分缝一段平针(如图A中红线所示),(以后这部分会被拉紧形成褶皱)
A single thread in a tapestry, though its color brightly shine, can never see its purpose in a pattern of the grand design.
挂毯中的一根线,就算十分光彩夺目,它也无法体会到整体设计的美感。
This paper discusses the problem about NC manufacturing process for the thread analyzes cutting parameters selection, feed pattern determination, NC programming, and so on.
探讨了螺纹的数控加工工艺。阐述了切削用量选择、走刀方式确定、数控程序编制等内容。
The approach starts from an analysis of the weave pattern and finds out the basic deformation element of the woven fabrics: visible thread segment.
首先从分析编织式样的结构入手,得出编织式样变形的基本单元——可见丝线段;
The broken thread embroidery is to break a thread by hand into 8 to 16 thinner threads, then, to broider them in groups. The broidered pattern is very flat and exquisite.
破线绣是把一根线用手工撕成更细的8至16根线,然后再分绺进行刺绣,绣出的图案十分平整细腻。
The window narrative of the shallow lotus green up use silk thread to briefly adorn to join Di lotus pattern.
浅荷绿色的窗纱上用丝线大略绣着并蒂莲花图案。
This is a very complicated technology, actually a creative designing process of stored pattern programs with silk thread as basic material.
此工艺技术要求很高,实际上是一种以线为材料,进行储存纹样程序的创作设计过程。
Pattern Settings, such as pattern name, designer name, and thread selection can be changed in the pattern Settings dialog.
图案设置,就像图案名称,设计者名字,用线的选择可以在图案设置对话框里面修改。
On the basis of a certain amount of calculations, the authors present an approximate formula, including the design parameters of the thread and the pattern data of the c…
在大量有限元数值计算基础上,给出了包含接头螺纹结构参数及裂纹形态参数在内的应力强度因子的近似计算公式。
On the basis of a certain amount of calculations, the authors present an approximate formula, including the design parameters of the thread and the pattern data of the c…
在大量有限元数值计算基础上,给出了包含接头螺纹结构参数及裂纹形态参数在内的应力强度因子的近似计算公式。
应用推荐