因为映射表的典型的读存取操作会改变顺序,如果多个线程可以从映射表读取,就应该同步存取操作。
Because the typical read-access of a map changes the order, if multiple threads could be reading from the map, you should synchronize access.
它使用传统的同步API对流执行写入和读取操作。
The approach uses the traditional synchronous API for writing and reading from streams.
我们使用的是多个读取方、单一写入方的应用程序,因此必须添加自己的同步,来确保同一时间只有一个NHRT请求一个度量结果。
We are using a multiple-reader, single-writer application, so we must add our own synchronization to make sure that only one NHRT requests a measurement at a time.
如果允许这两个servlet读取和更新同一个状态机而无需同步,状态机逻辑可能不会工作。
If both servlets are allowed to read and update the same state machine without synchronization, the state machine logic might not work.
不论什么时候,只要您将编写的变量接下来可能被另一个线程读取,或者您将读取的变量最后是被另一个线程写入的,那么您必须进行同步。
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 the absence of synchronization, if one thread writes to a variable and another thread reads that same variable, the reading thread could see stale, or out-of-date, data.
允许一个应用程序读取同步状态。
串行口对时方式:装置通过串行口读取同步时钟每秒一次的串行输出的时间信息对时,串行口又分为rs232接口和RS422接口方式。
Mode of serial port pair: synchronous clock device through the serial port read per second pair a serial output time information, serial port and RS232 interface and RS422 interface.
实现父子进程的同步,当父进程试图从一空管道中读取数据时,便进入等待状态,直到子进程将数据写入管道返回后,才将其唤醒。
Son process to achieve the synchronization, when the parent tried to read an empty pipe, they enter the wait state until the child process to write data pipeline to return only after its wake.
经过地理定位、地图投影后,读取了地球同步气象卫星红外灰度,计算了导出物理量。
Using infrared data of Geostationary Meteorological Satellite, the gray scale and other kinds of element were calculated or derived after map projecting and geographic calibrating.
IO命名空间包含允许对数据流和文件进行同步和异步读取及写入的类型。
IO namespace contains types that allow synchronous and asynchronous reading and writing on data streams and files.
IO命名空间包含允许对数据流和文件进行同步和异步读取及写入的类型。
IO namespace contains types that allow synchronous and asynchronous reading and writing on data streams and files.
应用推荐