写操作完成之后,它刷新文件缓冲区并解除文件锁。
On completion of the writing, it flushes the file buffers and unlocks the file.
例如,清单7中的接口定义用于配置应用程序的文件锁的字段。
For example, the interface in Listing 7 defines fields for configuring an application's file locks.
文件锁定支持的重构让服务器可以用基于租约的模型来保持文件的锁状态。
The restructuring of file locking support allows the server to maintain the lock state of files using a lease-based model.
如果并发性是一个问题,可以使用文件锁或使用适当的数据库事务的支持。
If concurrency is a problem, either use file locking or use a proper database with transactional support.
ENOLCK:没有可用的锁;您已达到系统对文件锁或记录锁的限制范围。
ENOLCK — No locks are available; you've reached a system-wide limit on file or record locks.
本文中将学习如何使用Boostipc库实现共享内存对象、消息队列和同步文件锁。
In this article, you learn how to use the Boost IPC library to implement Shared memory objects, message queues, and synchronized file locking.
您此时可能想到使用文件锁或其他特定于操作系统的技巧,以在分布式环境中同步对文件的访问。
You might have some ideas about using file locking or other operating system-specific tricks to synchronize access to a file in a distributed environment.
对并发进程用于通信的文件访问进行同步并非易事,但是BoostIPC库提供的文件锁功能让同步变得简单了。
Synchronizing file accesses used by concurrent processes to communicate is not an easy task, but the file-locking capability from the Boost IPC library does make life simpler.
此外,这个新版本的NFS协议支持字节范围的文件锁定,而先前版本使用的是网络锁管理器(Net work lock Manager)提供的lockd协议。
In addition, this new version of the NFS protocol supports byte range file locking, whereas previous versions used the lockd protocol provided by the Network lock Manager.
他打开盒子的锁,在文件里分类拣选。
他熟练地撬开每一把锁,偷走了每个抽屉里的文件。
He picked each lock deftly, and rifled the papers within each drawer.
为了保密,这些文件都加了锁。
最后,所有现有语句和CL命令在整个文件上需要一个互斥型锁。
Lastly, all the existing statements and cl commands required an exclusive lock on the entire file.
根据创建数据库所使用的数据定义语言 (DDL)模式文件,可以确定正在使用的锁类型。
You can determine the types of locks being used from the Data Definition Language (DDL) schema files used to create the database.
基表上不需要额外的锁,因为复制只分析日志文件,而不是分析基表。
No extra locking is required on the base tables as replication only analyzes the log files and not the base tables.
如前所述,之前所有用于修改媒介首选项的方法都要求对整个文件使用互斥型锁。
As mentioned earlier, all previous mechanisms of changing the media preference required an exclusive lock on the entire file.
在手动删除数据库锁文件之前,请务必确认在数据库机器上没有JVM在运行。
Be sure to verify that no JVMs are running on the database machine before manually removing a database lock file.
我们已经分析了如何正确地创建锁文件及其替代者。
We've examined how to create lock files correctly and alternatives.
使用单独的文件来表示锁是一个非常古老的方法。
Using a separate file to indicate a lock is an old way of doing things.
FD列中的大写W表示该应用程序具有对整个文件的写锁。
The capital W in the FD column indicates that the application has a write lock on the whole file.
当数据库没有被正确关闭(例如,崩溃或中止)时,就会留下一个“孤立的”数据库锁文件。
When a database is not properly shutdown (for example, a crash or an abort) an 'orphan' database lock file will be left.
如果发生系统突然关机或panic,MUI可能在启动时很难打开,因为系统崩溃时MUI没有适当的时间来清除剩余的锁文件。
In the event of a sudden system shutdown or panic, the MUI may have trouble starting when booting up because the MUI doesn't have the proper time to clean up leftover lock files when a system fails.
这是因为JFS2在实现时使用了写独占(write - exclusive)索引节点锁,允许多个用户同时读取相同的文件。
This is due to the way in which JFS2 is implemented with a write-exclusive inode lock, allowing multiples users to read the same file simultaneously.
现在只剩下两个次要的任务 ——初始化互斥锁和启动线程运行可上传的文件的列表。
This just leaves us with a couple of minor bookkeeping tasks -- initializing the mutex and starting a thread to run through the list of uploadable files.
相反地,如果能够获得互斥型锁,那么并发应用程序就无法访问文件,并因为锁超时失败。
Conversely, if an exclusive lock was able to be acquired, concurrent applications would not be able to access the file and could fail with a lock time-out.
使用单独的文件来表示锁,是“劝告式(advisory)”锁而不是“强制(mandatory)”锁的一个例子。
Using a separate file to indicate a lock is an example of an advisory lock, not a mandatory lock.
锁模式和锁对象类型都定义在sqlmon . h包含文件中,该文件将有助于破解表函数返回的数值当量(numerical equivalent)。
Lock modes and lock object types are defined in the sqlmon.h include file, which will help you to decipher the numerical equivalents that the table function returns.
问题是,root总是可以这样创建文件,即便锁文件已经存在,这意味着该锁不能为root正常工作。
The problem is that root can always create files this way, even if the lock file already exists — which means that the lock won't work correctly for root.
为了格式化锁事件监控器收集的死锁事件数据,并将其写到普通文本文件中,再次调用db 2evmonfmt工具。
To format the data about the deadlock event that the lock event monitor collects and write it to a plain text file, call the db2evmonfmt utility again.
根据同样的思路,您应该将设备锁文件之类的锁文件放置在 /var/lock 中。
In a similar vein, you should place lock files for things like device lock files in /var/lock.
应用推荐