我们最终的内存问题是如何在线程间通信。
Our final memory problem is how to communicate between the threads.
线程间共享内存和MPI的主要区别?
Main differences between threading with Shared memory and MPI?
系统线程间的数据交换在临界区保护模式下实现。
Data exchange among threads was realized under the protection of critical section.
由于要在线程间进行上下文切换,因此CPU简直变成了超载。
The CPU simply becomes overburdened by context switching between threads.
实现更加复杂,必须创建客户线程与服务线程间的协议。
More complex implementation, a protocol must be created between clients and server.
通过阐述多线程技术的特点,分析了多线程间的线程同步机制。
The features of multi-thread technology are introduced, and the methods of the thread synchronization between the multiple threads are analyzed.
写入多线程应用程序时,线程间的同步资源访问是一个常见问题。
Synchronizing resource access between threads is a common problem when writing multithreaded applications.
如果在线程间对调用进行封送处理,调用链可能是其他线程上的链。
The calling chain may be on a different thread, if the call was marshaled across threads.
但是,线程间的切换,可能会有很多人,5只是一个理论上的最小。
But switching between threads - there might be many of them, 5 is just a theoretical minimum.
我们的目标程序使用自旋锁机制来实现线程间对共享内存的互斥访问。
The classic spin lock technology is introduced to implement the mutually exclusive access to Shared memory.
运行记录版本的程序,将在程序运行同时记录下线程间事件的执行逻辑顺序。
Running record version program will record the logical order of inter-thread events 'execution at the same time of the original program's running.
既然锁定用于线程间通信,那么取消锁定会开启临界区,而释放锁定会结束临界区,这是行得通的。
Since locks are used for interthread communication, it makes sense that taking out a lock would start a critical region and that releasing the lock would end the critical region.
在了解线程以及线程间通讯的一些方面之后,我们可以看到如何为这两种模型设计程序。
We ll see how to design programs for either model after looking a bit at threads and communication among threads.
这个产品比起以往的版本在多线程方面更加强大,而在某些情况下线程间的同步则稍微逊色。
The product is a lot more multi-threaded than previous versions and in some cases synchronization between threads was less than great.
由于它比其它技术更简单,也更不易出错,人们最终将发现它是避免线程间出现不希望的交互的有效途径。
Because it is simpler and often less error-prone than those other techniques, it will eventually be discovered as an effective way to prevent undesired interactions between threads.
中文版的错误提示应该是:“线程间操作无效:从不是创建控件XXXXXXXXXX的线程访问它”。
Cross thread operation not valid: Control "XXXXXXXXXX" accessed from a thread other than the thread it was created.
有名事件对象用来在进程之间进行同步,而在Linux中,pthreads和POSIX都提供了线程间的同步功能。
Named event objects are provided to provide synchronization between the processes, but in Linux, both the pthreads and POSIX provides synchronization between threads.
因为主线程单独负责所有客户机间的多路复用,因此我们不能让它阻塞。
Because the main thread is solely responsible for multiplexing between all clients, we cannot afford to allow it to block.
多线程的一个重要的优越之处在于它能够改善图形化应用程序与用户间的交互性能。
An important benefit of multithreading is that it improves the interactive performance of graphical applications for the user.
朋友们群间交流信息,或是线程,有时会选定某个他们认为应得到更多关注的问题,一活动者说道。
Groups of these friends, who form new conversations, or threads, sometimes decide on a topic or an issue that they feel is deserving of more attention, the activist said.
虽然传输和代理能够一起协作,从而将Web应用程序的线程隔离开,但这是在应用程序间管理资源的一种非常粗粒度方式。
While the transports and proxy can work together to isolate threads from Web applications, this is a very coarse-grained way of trying to manage resources between applications.
这意味着当多个进程和线程可以在同一时间从同一数据库读取数据,但只有一个可以写入数据。
This means that while multiple processes and threads can read from the same database at the same time, only one is able to write.
在这两个线程之间需要使用一种进程间通信(IPC)机制。
You will need to use an interprocess communication (IPC) mechanism between these two threads.
你是否需要让你的类是单线程的?或者允许WCF能够在同一时间有多个实例?
Do you need to single-thread your classes or can you allow WCF to spin up multiple instances simultaneously?
内核负责完成可用CPU 间的负载优化(从线程到虚拟化操作系统)。
The kernel does its part to optimize the load across the available CPUs (from threads to virtualized operating systems).
这种做法的唯一问题就是进程间通信,除此之外都比使用线程要好,因为这样的架构能更平滑地进行扩展。
The only problem with that is inter-process communication, but otherwise it is better because the architecture can grow smoother.
这是因为在这5秒期间第一个定时器事件正在睡眠,而定时器却在不同的工作者线程上继续产生时间消失事件。
This is because during the five seconds that the first timer event was sleeping, the timer kept on generating Elapsed events on different worker threads.
临界区用来确保代码的某些部分同一时间只能由一个线程执行。
A critical section is an object used to make sure, that some part of the code is executed only by one thread at a time.
临界区用来确保代码的某些部分同一时间只能由一个线程执行。
A critical section is an object used to make sure, that some part of the code is executed only by one thread at a time.
应用推荐