Everyone USES it, so when you read something like this, you know this code will be probably called from another thread.
每个人都用它,所以当你读到和这类似的代码时,你知道这些代码大致可以在其他线程中去调用。
Whenever you will be writing a variable that may next be read by another thread, or reading a variable that may have last been written by another thread, you must synchronize.
不论什么时候,只要您将编写的变量接下来可能被另一个线程读取,或者您将读取的变量最后是被另一个线程写入的,那么您必须进行同步。
In nonblocking mode, the thread will read whatever amount of data is available and return to perform other tasks.
在非阻塞模式中,线程将读取已经可用的数据(不论多少),然后返回执行其它任务。
Keep a bag handy. Slip a pencil, paper, articles or mail to read, clothing darning needle and thread.
准备一个手边的袋子,放入铅笔、纸、要读的文章或书信、缝衣针和线。
Note: the kernel thread will read the global structure, and interrupts will be generated based on the elements in the global structure.
注:内核线程会读取这个全局结构,并会根据这个全局结构中的元素来生成中断。
So far, if a reader thread wanted to read data from a queue that had no data, you just threw an exception and moved on.
目前,如果读线程试图从没有数据的队列读取数据,仅仅会抛出异常并继续执行。
As the nonblocking channel is read, it is written into a pipe that is being consumed by a second thread.
当读取非阻塞通道时,把它写到正由第二个线程消费的管道。
A background thread might read this sensor every few seconds and update a volatile variable containing the current temperature.
一个后台线程可能会每隔几秒读取一次该传感器,并更新包含当前文档的volatile变量。
When the execution thread returns to the invoking application, it is the application's responsibility to read the value of the neededReports attribute and fetch the necessary reports accordingly.
当执行线程返回到调用方应用程序时,读取neededReports属性值并相应获取所需报告就是该应用程序的职责。
When the bot is used, this property is read and each custom class is run as a thread of the main Watchit bot.
当使用bot时,该属性会被读取且每个自定义类作为主watchit bot的一个线程运行。
Blocking methods, such as read , will be counted as the total time, including the time the thread spends being unscheduled and waiting for the call to complete.
对于阻塞方法(例如Read)将会显示总共时间,包括线程正在等待调度以及方法返回的时间。
If one thread attempts to read from a file whilst another is writing to it, the data may become corrupted.
如果一个线程尝试读取某个文件,而另一个线程对其进行写访问,则可能会损坏数据。
Each thread can read and write only to its own slot, rather than to the complete buffer.
每个线程只能够读写它自己的槽位,而不是整个缓冲区。
In blocking mode, a thread will block on a read or a write until the operation is completely finished.
在阻塞模式中,线程将在读或写时阻塞,一直到读或写操作彻底完成。
The main thread writes bytes read from the channel into the pipe.
主线程把从通道读取的数据写到管道中。
The operating system scheduler determines which thread gets control of the mutex next-typically, the reader thread that has waited the longest gets to read the data first.
操作系统调度程序决定哪个线程获得对互斥锁的控制权—通常,等待时间最长的读线程先读取数据。
If during a read, data has not completely arrived at the socket, the thread will block on the read operation until all the data is available.
如果在读的时候,数据尚未完全到达套接字,则线程将在读操作上阻塞,一直到数据可用。
It was heartening to read the thread of debate that followed my piece on Shakespeare yesterday, because so many people were adding their own knowledge to the argument.
令人高兴是那些在我昨天写的一篇有关莎士比亚的帖子下面的争论,因为那么多的人表达了自己的看法去参与这个争论。
Any read-only tree operation is thread-safe as long as there isn't any thread modifying it.
所有只读的树操作都是线程安全的,只要没有线程修改它。
The queue is then read by a thread pool, which acquires the measurement and completes the trace process.
然后,线程池读取该队列,获取测量数据并完成跟踪流程。
I come back to this thread to read your reply.
我回来到这条螺纹读你的回复。
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声明变量的最新值。
It would be better to run 7 queues instead of one, i. e. one per source thread, and read them in the order necessary.
这将更好地运行7个队列,而不是一个,即每一个源线,并在必要的阅读顺序。
However, read a long thread in Gmail, and your risk of getting lost is very realistic, as scrollbars are involved, and any click on a banner rearranges the contents of the window and its scrollbars.
但是,如果很长的GMail 贴子,迷路的危险就很现实,因为有滚动条,点击任何一栏都会重新排列窗口的内容及其滚动条。
At a later point in time, the reader thread invokes the read operation on the channel (this is also a synchronized method, so the reader thread must acquire the monitor lock before proceeding).
稍后,阅读器线程调用通道上的read操作(这也是一个同步的方法,所以阅读器线程在继续处理之前必须得到监视器锁)。
Read this discussion thread for more info.
阅读这个讨论主题的更多信息。
If you process a request in a different thread which is running in another process context, you would not be able to read user mode memory across process boundaries.
如果你处理一个不同线程的请求,而这个线程却又运行在另外一个进程的上下文中,你也许不能正常的跨越进程分界线来读取用户态内存。
If a thread wishes to modify or read a value from a Shared resource, the thread must first gain the lock.
如果一个线程想要从一个共享资源中修改或者读一个值,它必须先获取锁。
This is because the torn page protection modifies the page, making it unsuitable for any other thread to read.
这是因为残缺页保护会修改该页,使其不适合任何其他线程读取。
It's way out of my price range, but I am sure this is going to be a great thread to read.
它的出路我的价格范围,但我相信,这将是一个伟大的线程来阅读。
应用推荐