EJBs are single-threaded, and each thread in the pool can have its own connection.
EJB是单线程的,线程池中的每个线程都有自己的连接。
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线程中进行。
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线程。
Equivalent to single thread apartment.
等效于单线程单元。
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.
另一个常见的线程模型是为某一类型的任务分配一个后台线程与任务队列。
Thread switches can occur either inside of a single process or across processes.
线程切换可以在单个进程内部发生,也可以跨进程发生。
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.
单个线程将通过这些执行单元中的其中一个来执行。
A single thread pool can therefore be used by multiple applications.
因此,单个线程池可以由多个应用程序使用。
You can use this method when waiting on a single thread synchronization object.
当等待单一线程同步对象时,可以使用此方法。
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)中,对象的状态会一直维持为有信号状态,直到单个正在等待的线程被释放为止。
In the auto reset event, the state of the object remains signaled until a single waiting thread is released.
在自动重置事件(auto reset event)中,对象的状态会一直维持为有信号状态,直到单个正在等待的线程被释放为止。
应用推荐