不论什么时候,只要您将编写的变量接下来可能被另一个线程读取,或者您将读取的变量最后是被另一个线程写入的,那么您必须进行同步。
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.
读取和写入原子变量与读取和写入对可变变量的访问具有相同的存取语义。
Reads and writes of atomic variables have the same memory semantics as read and write access to volatile variables.
在从源表及目标表读取数据的过程中,LBAC读取访问规则被执行。
LBAC read access rules are enforced while reading from both source and target tables.
偏移指出是否开始读取,而计数指出所读取字节的数量。
The offset indicates where to begin reading, and the count identifies the number of bytes to read.
通过此技巧,您通常会遇到与先读取技巧相同的折衷问题:读取操作通常是在事务作用域的外部完成的。
With this technique, you'll typically encounter the same trade-off as with the read-first technique: read operations are typically done outside of the context of the transaction scope.
我们关注的是磁盘读取,而不是磁盘写,因为大部分磁盘访问都是为了进行读取操作,且大部分磁盘带宽也用于读取操作。
We focus on disk reads rather than disk writes, because the majority of disk accesses are for read operations, and the majority of disk bandwidth is used for read operations.
继续读取文件,直至到达文件末尾,边读取边打印每行。
Keep reading the file until you are at the end, printing each line as you read it.
客户机或服务器应用程序可能读取完整信息、部分消息或者根本读取不到消息。
The client or server application may read the complete message, a partial message, or nothing at all.
当应用程序打开一个文件句柄读取文件以处理文档时,它通常读取文件后就不再需要文件句柄了。
When an application opens a file handle to read in so it can process a document, it typically reads from the file and then has no further need for the file handle.
你可以在读取期编译或运行代码;也可以在编译期读取或运行代码;还可以在运行期读取或者编译代码。
You can compile or run code while reading, read or run code while compiling, and read or compile code at runtime.
即,允许一些读取器在其他读取器锁定时运行效率更高,但是您可能会有读取器线程的流持续不断的风险,导致编写器无法进行工作。
That is, it would be more efficient to allow readers to run while other readers held the lock, but you'd risk a constant stream of reader threads keeping the writer from ever doing its job.
在以前的处理类型中,读取XML文档之前,必须先读取“文档类型定义”(DTD)。
In the former type of processing, it is necessary to read a "document type Definition" (DTD) prior to reading an XML document it applies to.
xargs命令可从管道中读取数据并为每行读取内容运行指定命令。
Xargs reads data from a pipe and runs a specified command for every line read.
读取器协议和读取器:对于追踪和跟踪解决方案,读取器通过读取20 个条形码或RadioFrequencyIdentification (RFID)标签或相似的东西,创建原始数据。
Reader protocols and readers: For a track-and-trace solution, readers create the raw data by reading 2D barcodes or Radio Frequency Identification (RFID) tags or similar.
这还授予对您已具有读取、编辑或删除访问权的每个内容项的读取、编辑或删除访问权。
This also grants read, edit, or delete access to each content item that you have read, edit, or delete access to.
这还授予对您已具有读取、编辑或删除访问权的每个创作模板的读取、编辑或删除访问权。
Also grants read, edit, or delete access to each authoring template that you have read, edit, or delete access to.
这还授予对您已具有读取、编辑或删除访问权的每个表示模板的读取、编辑或删除访问权。
Also grants read, edit, or delete access to each presentation template that you have read, edit, or delete access to.
这行代码将创建一个与以上页面的连接,并允许您开始像读取一个本地文件一样读取它。
This line of code creates a connection to the page above and allows you to start reading it much like a local file.
这就说明我可能有一个低效的访问路径,DB 2读取的数据比应该读取的数据更多。
This tells me that I may have an inefficient access path, where DB2 reads more data than it should.
因为不是从磁盘连续读取页面的,所以在读取每个页面之前,都需要进行查找并存在循环延迟。
Because the pages are not read sequentially from the disk, both seek and rotational delays occur before each page can be read.
这还授予对您已具有读取、编辑或删除访问权的每个库组件的读取、编辑或删除访问权。
Also grants Read, Edit, or Delete access to each library component that you have Read, Edit, or Delete access to.
读取活跃数据集要比读取其它数据快很多,那些不活跃的数据必须通过网络获取。
The hot set can be read much more quickly than the rest, which must be fetched over the network.
如果希望对随机文件读取进行基准测试,很可能需要确保读取不同的文件,以避免缓存。
If you want to benchmark random file reads, you likely need to ensure that different files are read to avoid caching.
例如,与其将2GB的数据项写入网格,不如对输入文件迭代读取(譬如每次读取50k),再将其每次读取的少量数据写入到网格中。
For example, rather than having to write 2gb of data into the grid, we iterate through an input file (say in steps of 50k) and write the read data into the grid.
然而,在从源表读取数据期间,LBAC读取访问规则被执行。
LBAC read access rules are enforced while reading from source table, however.
第二个CRUD操作是读取,代码的作用是从数据库中读取小部件的记录。
The second CRUD operation is read: the code simply needs to read widget records from the database.
编写代码以读取人工任务的输入消息、声明任务、读取输入消息、实现任务、创建输出消息,以及完成任务。
Write code to read the input message for the human task, claim the task, read the input message, implement the task, create the output message, and complete the task.
因此,与按顺序读取相比,按随机顺序读取数据时的磁盘访问时间要长得多。
As a result, the disk access time is much longer when reading data in random order than when reading in sequential order.
悲观会话锁通常为写入锁,它们允许其他用户读取锁定的数据,除非遇到不能读取的情况。
Pessimistic session locks should generally be write locks; they should let other users read the locked data, unless there is a very strong case to not do so.
根据您的应用程序的设计,您可能需要在事务作用域外部执行读取操作,即使读取操作用于更新目的。
Depending on how your application is designed, you may be forced to execute read operations outside the transaction's scope, even when the read operations are used for update intent.
应用推荐