在 英语 中使用 Multiple threads 的示例及其翻译为 中文
{-}
-
Political
-
Ecclesiastic
-
Programming
People say"We want to have multiple threads inside Smalltalk.".
Multiple threads within the same process can communicate and share resources.
To take advantage of multi-core systems,Python must support multiple threads of execution.
The class isn't thread-safe, because if multiple threads try to modify the data member n, the result is undefined.
To take advantage of multi-core systems,Python must support multiple threads of execution.
When you have multiple threads executing the same program, it is like having multiple CPUs execute within the same program.
To take advantage of multi-core systems,Python must support multiple threads of execution.
Code that executes correctly under multiple threads, but slower than the same code running on a single thread, is hardly an improvement.
The problem with signals is not what they do,but their behavior when your application has multiple threads.
Due to the design of the Python interpreter, using multiple threads to increase performance is at best a difficult task.
There are also enhancements to the concurrency framework,which lets you manage and accumulate values in multiple threads.
WebKit's Riptide GC already mostly supports multiple threads because our JIT threads can access the heap.
Immutable data cannot be changed andthus reading immutable data does not call for locks, even if multiple threads are reading.
By allowing the computer to download the data in multiple threads, we were able to speed up the I/O process from hours to minutes.”.
With the the auto-parallelizer,a loop is reorganized so that it can be executed on multiple threads at the same time.
This guide shows you how to set up and use multiple threads in an Android app, using a thread pool object.
Listing 16-15: Using an Arc<T> to wrap the Mutex<T>to be able to share ownership across multiple threads.
If multiple threads access a set concurrently, and at least one of the threads modifies the set, it must be synchronized externally.
There are also many problems that cannot easily be tested at all-for example those that are nondeterministic or involve multiple threads.
If multiple threads access a list concurrently, and at least one of the threads modifies the list structurally, it must be synchronized externally.
There are just 27 lines of code in Figure 1, providing an elegant andconcise way to ensure that objects are synchronized across multiple threads.
Likewise, although multiple threads can run within the Python interpreter, only one thread is being executed by the interpreter at any given time.
He started talking with fellow students so see if theycould borrow ideas from parallel processing and multiple threads and apply them to cluster management.
If you want to use collections in multiple threads, have a look at synchronized wrappers and particularly concurrent collections.
In Chapter 16, we will walk through different models of concurrent programming andtalk about how Rust helps you to program in multiple threads fearlessly.
Therefore, a mechanism is needed to enable multiple threads to read only when there is no conflict between threads, and can be done through Lock.
You can think of the operating system as a container that holds multiple processes,where each process is a container that holds multiple threads.
The Java language supports simultaneous execution of multiple threads and provides a synchronization mechanism between multiple threads(keyword is synchronized).
While VB6 supports multiple single-threaded apartments, it does not support a freethreading model,which allows multiple threads to run against the same set of data.