写操作完成之后,它刷新文件缓冲区并解除文件锁。
On completion of the writing, it flushes the file buffers and unlocks the file.
清除此流的缓冲区,将所有缓冲的数据都写入到文件中,另外也清除所有中间文件缓冲区。
Clears buffers for this stream and causes any buffered data to be written to the file, and also clears all intermediate file buffers.
这两个事件往往同时被指定,因为在两者之间,它们覆盖了将当前文件的内容加载到一个缓冲区的最常用方法。
These two events are often specified together because between them they cover the most common ways of loading the contents of an existing file into a buffer.
更复杂的方法可能涉及更多资源,而不仅仅是两个文件和一个缓冲区,这使得问题变得更加复杂。
And with a more substantial method, which might involve more resources than just two files and a buffer, it gets even more complicated.
将磁盘的数据复制到缓冲区缓存,然后再复制文件数据时会出现多余的副本。
This copy occurs when the disk is copied to the buffer cache and then again from the file.
在日志记录被写入日志文件之前,它们首先会被写到缓冲区。
Before log files are written to the log files, they are first written into buffers.
清单4和清单5显示了对循环缓冲区写入数据并且将其内容转储到文件的示例。
Listing 4 and Listing 5 show samples of writing the data to a ring buffer and dumping its contents to file.
大多数文件系统都通过缓冲区缓存来相互通信,这种缓存通过缓存最近使用的数据来优化对物理设备的访问。
Most of the file systems communicate through a buffer cache, which is a cache that optimizes access to the physical devices by caching recently touched data.
可能没有足够的磁盘空间来完成该文件的写操作,或者由于没有足够的内存可用,分配缓冲区可能失败。
There might not be enough disk space to complete the file write operation, or allocating the buffer could fail if not enough memory is available.
用户可以使这些输出数据流入字符串、内部缓冲区、标准输出或文件。
Users can stream the output data into a string, an internal buffer, the standard output, or a file.
如果是在跟踪共享内存,跟踪缓冲区的大小将控制转储文件的大小。
If you are tracing to Shared memory, the size of the trace buffer controls the size of the dump file.
选择跟踪输出是写到文件,还是写到内存缓冲区。
Select whether the Trace Output is written to a File or to Memory Buffer.
而且,对于那些受益于文件系统预读功能或者较高缓冲区缓存命中率的应用程序,可能会出现性能的降低。
Further, applications that might benefit from having a file system read ahead or high buffer cache hit rates might actually see performance degradation.
缓冲区缓存会缓存文件系统和相关块设备之间的请求。
The buffer cache buffers requests between the file systems and the block devices that they manipulate.
换句话说,将把数据缓冲区的所有脏位刷新到数据文件。
In other words, all dirty bits of the data buffer will be flushed to the data files.
缓冲区缓存——为存储从物理数据文件读取的数据块而分配的内存。
Buffer Cache - Memory allocated for storing data blocks read from physical data files.
通过使用内存操作代替文件操作,循环缓冲区使得日志记录的效率更高。
A ring buffer makes logging efficient by using memory operations in place of file operations.
与传统的文件日志记录机制相比,循环缓冲区提供了下列优势。
A ring buffer provides the following advantages over the traditional file logging mechanism.
在清单2中,图像已经在图像缓冲区中,我们只需将它保存到磁盘上的文件中。
In Listing 2, the image is already in the image buffer and all we have to do is save it to the file on disk.
而直接I/O 可以避免使用文件系统缓冲区,因而对于磁盘的读写更为高效。
Direct I/O bypasses the use of the file system buffers, and therefore is more efficient for reads and writes that go to disk.
在缓冲区空间充满时,事件记录随之移入事件表或文件。
When the buffer space is full, the event records are then moved to the event tables or files.
readfile 函数将把文件或Web页面的全部内容转储到默认的输出缓冲区。
The readfile function dumps the entire contents of a file or Web page to the default output buffer.
在从db2audit. log文件提取审计记录之前,发出以下命令将缓冲区中的所有审计记录刷新到磁盘。
Before extracting audit records from the db2audit.log file, flush any remaining audit records in the buffer out to disk by issuing the following command.
日志读写器(LGWr)——从日志缓冲区写入项目,以便重做日志文件。
Log Writer (LGWr) - Writes entries from log buffer to redo the log files.
更坏的是,它可以增长,却不可以缩小,所以LeakyChecksum将永久保持一个与所处理的最大文件一样大小的缓冲区。
Worse, while it can grow, it cannot shrink, so LeakyChecksum permanently retains a buffer as large as the largest file processed.
数据库读写器(DBWr)——异步地将缓冲区的脏数据写到物理数据文件中。
Database Writer (DBWr) - Writes to physical data files the dirty bits of buffer asynchronously.
transferTo()方法引发DMA引擎将文件内容拷贝到一个读取缓冲区。
The transferTo() method causes the file contents to be copied into a read buffer by the DMA engine.
transferTo()方法引发DMA引擎将文件内容拷贝到内核缓冲区。
The transferTo() method causes the file contents to be copied into a kernel buffer by the DMA engine.
要写入文件的缓冲区数据包括逻辑树的globalenvironment部分的子元素的内容、namedFile。
The buffered data that is written to the file includes the content of the child, named file, of the global environment section of the logical tree.
要写入文件的缓冲区数据包括逻辑树的globalenvironment部分的子元素的内容、namedFile。
The buffered data that is written to the file includes the content of the child, named file, of the global environment section of the logical tree.
应用推荐