Do you need to single-thread your classes or can you allow WCF to spin up multiple instances simultaneously?
你是否需要让你的类是单线程的?或者允许WCF能够在同一时间有多个实例?
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线程中进行。
This machine could be used in sewing plastic woven bag, sack, paper bag mouth and binding of Bag-making Plant. It could use single-thread and 2-thread.
该机可供制袋厂缝制塑料编织袋、布袋、纸袋口及圈边之用,该系列机器可单双线两用。
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提供了互斥函数来创建临界区,用于实施单线程对对象(一块内存)的独占访问。
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.
即使一个程序只包括一个在单一处理器上运行的单线程,一个同步的方法调用仍要比非同步的方法调用慢。
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 modern operating systems have a single UI thread.
绝大多数现代操作系统都有一个单独的ui线程。
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服务器在单一线程中运行,而且单一客户端不太可能给服务器造成压力,因为它还受到打开请求的方法的限制。
A single arrow indicates a thread contention: One thread is waiting for another thread to release a lock.
一支单独的箭头指出一个线程竞争:一个线程正在等候另一个线程释放一个锁。
For example, concentrating or multiplexing multiple connections on a single thread allows for a reduction in the number of overall threads.
例如,将多个连接分插或集中到一个线程上,可以减少总线程数。
If you know you are going to build up a string in a single thread, use StringBuilder.
如果知道要在单线程中构建字符串,就使用StringBuilder。
The IBM WebSphere MQ MDB implementation uses a single thread to dispatch incoming messages from the input queue.
IBMWebSphereMQMDB实现使用单线程来分派输入队列中的传入消息。
Another common threading model is to have a single background thread and task queue for tasks of a certain type.
另一个常见的线程模型是为某一类型的任务分配一个后台线程与任务队列。
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.
她还设计了一个特殊的卷轴,把蚕茧里的纤维拉成一根单线,这样它们就足够结实,可以织成织物。
It dynamically correlates events occurring on a single application thread.
它动态地把发生在同一应用线程上的事件联系起来。
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。
If you have two operations that require synchronization separated by a small block of thread-safe code, you are generally better just using a single synchronized block.
要是您想用一小块线程安全代码把要求同步的两个操作隔开,那么只使用一个同步块一般会更好些。
A single thread executes through either of these execution units.
单个线程将通过这些执行单元中的其中一个来执行。
By setting this property, the mediation developer can ensure that the complete request or response flow executes under a single thread of execution.
通过设置此属性,中介开发人员可以确保在单个执行线程下执行完整的请求或响应流。
From the standpoint of a single thread, a new node is created whose next pointer points to the top of the stack.
从单一线程的角度来看,创建了一个新节点,它的next指针指向堆栈的顶部。
This equates to an achievable response time of 400ms assuming a single client thread.
如果只有单个客户机线程,那么这相当于400ms的可实现响应时间。
Unfortunately, it is difficult to estimate the amount of concurrency supported by a single dispatcher thread on this kind of system.
遗憾的是,难以评估这种系统中单个调度程序线程支持的并发数。
In the auto reset event, the state of the object remains signaled until a single waiting thread is released.
在自动重置事件(auto reset event)中,对象的状态会一直维持为有信号状态,直到单个正在等待的线程被释放为止。
There is a single message listener service and a single corresponding thread pool in each server for all the listener ports defined in that server and used by all the applications.
在每个服务器中,对于该服务器中定义并由所有应用程序使用的所有侦听器端口,仅存在一个消息侦听器服务和一个相应的线程池。
The sealing principle of sealing cavity in single thread twin screw pump is the same as that in double thread twin screw pump.
单头双螺杆泵与双头双螺杆泵密封腔的密封原理相同。
Although each application domain is started with a single thread, code in that application domain can create additional application domains and additional threads.
虽然每个应用程序域都是用单个线程启动的,但该应用程序域中的代码可以创建附加应用程序域和附加线程。
Another method is to make a single dedicated thread execute the critical code and make it work as a messages server.
另一个方法是使用单个专门的线程来运行临界代码,并且将其作为一个消息服务程序。
Another method is to make a single dedicated thread execute the critical code and make it work as a messages server.
另一个方法是使用单个专门的线程来运行临界代码,并且将其作为一个消息服务程序。
应用推荐