Do you need to single-thread your classes or can you allow WCF to spin up multiple instances simultaneously?
你是否需要让你的类是单线程的?或者允许WCF能够在同一时间有多个实例?
She also devised a special reel to draw the fibres from the cocoon into a single thread so that they would be strong enough to be woven into fabric.
她还设计了一个特殊的卷轴,把蚕茧里的纤维拉成一根单线,这样它们就足够结实,可以织成织物。
Some spiders produce a single thread.
有些蜘蛛只吐一条线。
These tiny threads come together to form a single thread.
这些细线聚在一起形成一条线。
Even when a program contains only a single thread running on a single processor, a synchronized method call is still slower than an unsynchronized method call.
即使一个程序只包括一个在单一处理器上运行的单线程,一个同步的方法调用仍要比非同步的方法调用慢。
POSIX provides the mutex function to create critical sections that enforce exclusive access to an object (a piece of memory) by a single thread.
POSIX提供了互斥函数来创建临界区,用于实施单线程对对象(一块内存)的独占访问。
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线程。
Most programs create many temporary objects that are used within the context of a single thread but never escape to the visibility of other threads.
大多数程序所创建的临时对象都用在单独的线程上下文中,很少被其他线程所用。
Learn to view your code from the perspective of a single thread and make sure each individual thread in your program has a consistent, friendly view of memory.
学会从一个线程的角度来审视代码,并确保程序中每一个线程对内存的观点都是一致和合适的。
Specifically, if everything is happening in a single thread, performing long operations such as network access or database queries on the UI thread will block the whole user interface.
特别是,如果把所有的事件都放在主线程中来处理,需要长时间来处理的事件比如网络访问或者数据库查询,会阻塞整个UI。
Even when run with a single thread, the collapsed version was some 30 percent faster: it is much faster to acquire a lock that you already hold than one that nobody holds.
即使只运行一个线程,崩溃版的速度也要快约30%:获取您已占用的锁比获取无人占用的锁要快得多。
For example, concentrating or multiplexing multiple connections on a single thread allows for a reduction in the number of overall threads.
例如,将多个连接分插或集中到一个线程上,可以减少总线程数。
Compass: A thread safe instance used to open Compass Sessions for single thread usage.
Compass:为单线程使用,创建线程安全的实例来打开Compass Seesion。
Regardless of whether or not you use AsyncTask, always remember these two rules about the single thread model.
无论您是否使用asynctask,都要记住单线程模型的两个规则。
The go runtime environment provides support for goroutines, which are allocated a single thread, and does not support parallel execution yet, which may be provided later.
go运行时环境提供了对goroutines的支持,会为它分配单独的线程,但现在还不支持并行执行,该功能会在以后提供。
Keep in mind that the libevent server is running in a single thread, and a single client is unlikely to stress the server, since it will also be limited by the method of opening requests.
请记住,这个libevent服务器在单一线程中运行,而且单一客户端不太可能给服务器造成压力,因为它还受到打开请求的方法的限制。
Finally, the SDK notes that like other languages, the go language runtime only supports a single CPU thread; so whilst goroutines and channels are present, only a single thread will execute.
最后,SDK指出,go像其他语言一样,其运行时仅支持单一C PU线程。所以,虽然goroutines (go语言中的并行程序称为goroutines)和信道都存在,但只有一个单一线程会执行。
The IBM WebSphere MQ MDB implementation uses a single thread to dispatch incoming messages from the input queue.
IBMWebSphereMQMDB实现使用单线程来分派输入队列中的传入消息。
If you know you are going to build up a string in a single thread, use StringBuilder.
如果知道要在单线程中构建字符串,就使用StringBuilder。
By setting this property, the mediation developer can ensure that the complete request or response flow executes under a single thread of execution.
通过设置此属性,中介开发人员可以确保在单个执行线程下执行完整的请求或响应流。
A single thread pool can therefore be used by multiple applications.
因此,单个线程池可以由多个应用程序使用。
You can use this method when waiting on a single thread synchronization object.
当等待单一线程同步对象时,可以使用此方法。
A single thread executes through either of these execution units.
单个线程将通过这些执行单元中的其中一个来执行。
Generally, it does this by maintaining awareness or state of the mapped entity class instances it is responsible for by keeping a first-level cache of instances, valid for a single thread.
通常,它通过保留对单个线程有效的一级缓存实例,维护它负责的映射实体类实例的可识别性或状态,从而做到这一点。
Deadlocks can also happen within a single thread.
死锁也会发生在单独的线程中。
They can schedule the jobs to run at any time, as long as they send them to the job spooler, which will single thread each job through the spooler.
他们可以把作业安排在任何时候运行,只要把作业发送给作业假脱机程序,就会逐一执行每个作业。
Only a single thread is used for all these benchmarks; the synchronized classes are under no thread contention.
所有基准测试都只使用一个线程;同步的类不涉及线程争用。
Batch application developers write code that is thread-safe and executes on a single thread.
批处理应用程序开发人员可以编写线程安全的、且在单个线程中执行的代码。
Synchronous – The consumer uses a single thread to invoke the service; the thread sends the request, blocks while the service is running, and waits for the response.
同步——使用者通过单个线程调用服务;该线程发送请求,在服务运行时阻塞,并且等待响应。
Synchronous – The consumer uses a single thread to invoke the service; the thread sends the request, blocks while the service is running, and waits for the response.
同步——使用者通过单个线程调用服务;该线程发送请求,在服务运行时阻塞,并且等待响应。
应用推荐