You can define other threads by configuring the report widget.
您可以配置报告小部件来定义其他线程。
If no other threads are available for execution, then processors may sit idle.
如果没有其他的线程可供执行,那么处理器就将空闲。
Also, many other threads and processes may be started to carry out various tasks.
同样,启动其他众多线程和进程来执行不同任务。
Usually, the main use of a semaphore is to synchronize a thread?s action with other threads.
通常,信号的主要用途是同步某个线程与其他线程的动作。
You can pass this object in to other methods -- in other threads -- and not worry about it at all.
可以将该对象传递到其他线程中的其他方法,而且根本无需担心。
Once the thread has finished with the object, it releases it so that other threads can then gain access.
一旦该线程完成对该对象的处理之后,便释放该对象,以便其他线程可以进行访问。
The first thread locks the mutex and appends data to the queue, while the other threads wait for their turn.
第一个线程锁住互斥并把数据添加到队列中,而其他线程等待轮到它们操作。
The longer a synchronized code block requires for execution, the longer other threads wait to enter that block.
同步代码块所需的执行时间越长,其他线程等待进入该代码块的时间就越长。
These operations are "atomic;" they always happen together, without any other threads executing in between them.
这些操作是“原子操作”;它们总是一起执行,没有任何其他线程在它们之间执行。
The purpose of the sleep is to allow the garbage collector to finish up after it has released the other threads.
休眠的目的在于给垃圾回收器充分的时间,在释放其他线程之后完成工作。
If you want to change state in a way that other threads will see it, then you might want to use Clojure's atoms.
如果想以其他线程可见的方式来变更状态,可能需要采用Clojure的atoms。
For other threads waiting on the same mutex, this has a negative effect, because the wait time is now even longer.
这对于等待同一互斥锁的其他线程有不利影响,因为等待时间现在会更长。
There's the race condition caused by other threads banging on your collection while the add or remove is taking place.
当添加或移除元素时,存取集合的其他线程会引起竞争条件。
The one major difference, mentioned above, is that these blocking reads and writes can be interrupted by other threads.
唯一的主要差别,如上所述,是这些阻塞读和写可以被其它线程中断。
If main finishes before the threads it has created and exits with pthread_exit , the other threads continue to execute.
如果main在它创建的线程之前完成,并使用pthread_exit退出,那么其他线程将继续执行。
Different threads can successively call the function and modify the data without informing the other threads that are using the data.
不同的线程可能会先后调用那个函数,并且修改那些数据时不会通知其他正在使用此数据的线程。
To fix this problem, Android offers several ways to access the UI thread from other threads. Here is a list of methods that can help.
为了解决以上问题,Android提供了几种途径来从其它线程中访问UI线程。
Then net effect is that we will end up with a longer critical section which may result in other threads stalling and reduced throughput.
这种做法带来的真正效果是我们获得了一个更长的临界区,它可能导致其他线程受到拖延从而降低吞吐量。
Contention for these locks from other threads, and also locks to be acquired during finalization, might occur and can result in deadlock.
其他线程可能会争用这些锁和在终结期间将获取的锁,进而导致死锁。
Each thread can see only the value associated with that thread, and is unaware that other threads may be using or modifying their own copies.
每个线程只能看到与自己相联系的值,而不知道别的线程可能正在使用或修改它们自己的副本。
The is_dumping global variable is used to stop other threads from changing the contents of the buffer once a signal has been received to dump data.
一旦接收到了转储数据的信号,将使用 is_dumping全局变量禁止其他的线程更改该缓冲区的内容。
An algorithm is said to be wait-free if every thread will continue to make progress in the face of arbitrary delay (or even failure) of other threads.
如果每个线程在其他线程任意延迟(或甚至失败)时都将持续进行操作,就可以说该算法是无等待的。
Android offers several ways to access the UI thread from other threads. You may already be familiar with some of them but here is a comprehensive list.
Android提供了几种不同的方式来通过其它线程访问UI线程。
In a thread-safe program, only one writing thread can modify the variable; other threads can read the up-to-date value by declaring the variable volatile.
在一个线程安全的程序中,只有一个写线程能够修改这个变量;而其他的线程则可以读取volatile声明变量的最新值。
Critical sections operate on the principle of mutual exclusion (when a thread is within a critical section, all other threads are excluded from entering).
临界段操作时坚持互斥锁(mutual exclusion)原则(当一个线程处于临界段中时,其他所有线程都不能进入临界段)。
In a multiprocessing environment, the processing time for a thread is related to the availability of system resources and synchronization with other threads.
在多处理环境中,线程的处理时间与可用系统资源以及与其他线程的同步有关。
As long as you append to the front of the list, you won't even have to touch the existing list structure, allowing other threads to iterate through it freely.
当向列表前添加元素时,甚至不必修改现有的列表结构,就可以让其他线程自由地遍历它。
Any thread can tell which state the queue is in by comparing tail.next to null, which is the key to enabling threads to help other threads "finish" their operation.
任何线程通过比较tail . next是否为null,就可以判断出队列的状态,这是让线程可以帮助其他线程“完成”操作的关键。
Any thread can tell which state the queue is in by comparing tail.next to null, which is the key to enabling threads to help other threads "finish" their operation.
任何线程通过比较tail . next是否为null,就可以判断出队列的状态,这是让线程可以帮助其他线程“完成”操作的关键。
应用推荐