图6显示了文件访问的写模式时间队列如何改善数据一致性
Figure 6 demonstrates how a write mode time queue for file access can improve data consistency
同时介绍了VGA的写模式的编程和主要的设计思想。
Also, VGA's programming of write mode and some designing thoughts is introduced.
正如你所看到,每当我们写模式中打开以前的内容越来越截断文件。
As you see whenever we open the file in write mode the previous contents are getting truncated.
a和b想要通过ElasticFox以写模式并发(同时)访问VM实例。
Both a and B try to access the same VM instance through Elastic Fox concurrently (at the same time) in write mode.
如果两个或多个用户同时以写模式访问文件或修改文件,文件将更新为最后保存的内容。
If two or more users access the file in write mode concurrently and modify the file, the last saved content is updated in the file.
一般来说,如果用户以写模式请求访问任何文件,请求都是按照其生成时间的顺序放置。
In general, if any request is made by the user for accessing the file in write mode, each request is placed in the order by using the time at which the request is made.
当第一个以写模式访问的用户释放文件后,队列顶部的用户就能以写模式访问。
When the first user with write access releases the file, the top-most user from the queue is then given the write mode access.
在写访问队列中,用户B在队列顶部,这是因为b先于c以写模式请求访问文件。
From the write access queue, user B is at the top of the queue since user B requests first to access the file in write mode compared with user C. user B is provided the write access.
如果我们关注用户的实用性问题,我们必须找出这些问题对我们写模式的方法有什么关联。
If we focus on usability problems of user, we need to work out what the implications are for the way we write patterns.
当user 1想要以写模式访问任一文件,相应的对象将被锁定,这样其他用户无法访问,直到它被user1释放。
When user1 wants to access any file in write mode, the corresponding object will be locked so that other users can't access it until it is released by user1.
图7中,我们在时间框架中额外添加了一个用户访问文件来表示所提供的文件访问模式—用户以读模式还是以写模式访问。
In Figure 7, we've added a field in addition to the time frame a user accesses the file to represent in which mode the file access is provided - whether the user is accessing for write or for read.
一般来说,如果两个或多个用户以写模式并发访问文件,第一个用户保证能以写模式访问文件,其他用户的写模式访问请求将排队。
In general, if two or more users access the file in write mode concurrently, the first user is granted write mode access to the file and the remaining users write mode access requests are queued.
如果有一个线程处于可升级读模式,并且没有任何线程等待进入写模式,那么任意数量的线程可以进入读模式,即使有线程在等待进入可升级读模式。
If a thread is in upgradeable mode, and there are no threads waiting to enter write mode, any number of other threads can enter read mode, even if there are threads waiting to enter upgradeable mode.
你知道,我正在写那篇关于鲸鱼的论文,它是关于鲸鱼在海洋中游泳的路径以及它们的移动模式。
You know, I am writing that paper about whales and the path they travel as they swim through the ocean, their migration patterns.
要想知道如果休斯真正采用了经典的布鲁斯作为他的模式,他的布鲁斯诗歌可能会是什么样子,只需要看看“金棕色布鲁斯”,这是休斯为作曲家汉迪写的一首歌词。
To see what Hughes' blues poetry might have been like if he had truly adopted the classic blues as his model, one need only look to "Golden Brown Blues", a song lyric Hughes wrote for composer Handy.
对我来说,在不知道它们是如何在水下呆这么久的情况下,写它们的洄游模式有点疯狂。
lt's a little crazy for me to be writing about migration patterns without actually knowing how they stay underwater for so long.
您既可以以人工方式设计必要的包层次,也可以写一个为您创建这个包的模式。
You can either you manually design the necessary hierarchy of packages, or you can write a pattern that creates it for you.
您可以按下列方式将该模式写为一个正则表达式。
You can write this pattern as a regular expression in the following way.
DRBD支持两个模式的写操作,即完全同步和完全异步。
DRBD supports two modes for Write operations called fully synchronous and asynchronous.
这也是我们在写设计模式这本书时学到的重要一课。
That was also an important lesson we had learned when we wrote Design Patterns.
基本的想法是写一个程序分析散弹枪的射击模式。
The basic idea is to write a program to analyze a shotgun's shot pattern.
通常,所需的模式是 0666,它使文件可由任何人读和写。
Often, the mode requested is 0666, which makes the file readable and writable by anyone.
您可以使用请求端缓存模式来实现写策略。
You can use the Requester Side Caching Pattern to implement the On Write policy.
写博客的惰性很大程度上是没时间进入“发布”模式的副作用。
The inertia required for writing a blog is largely a side effect of not having the time to get into "publishing" mode.
JUNIT使用了一点模式语言的方法,因为它能帮你写一个测试用例。
JUnit has a bit of this pattern language approach, because it can help you write a test case.
如果你有兴趣学习更多关于活动模式的知识,可以看看Don Syme写的这些博客文章,其中包括了一个论文的连接,这个论文提供了关于活动模式设计的更多细节。
If you are interested in learning more about active patterns please see this blog post from Don Syme, which includes a link to a paper which gives more details about the active pattern design.
模式是读 (r)、写 (w)或执行 (x)。
在阻塞模式中,线程将在读或写时阻塞,一直到读或写操作彻底完成。
In blocking mode, a thread will block on a read or a write until the operation is completely finished.
在这种模式下,写操作是在数据存储到本地磁盘并镜像到对等节点内存后被确认的。
In this mode, the Write operation is acknowledged after the data is stored on the local disk and mirrored to the peer node's memory.
在完全同步模式下,在写事务被认可之前两个节点存储中的写操作必须是安全的。
In fully synchronous mode, write operations must be safely on both nodes' storage before the write transaction is acknowledged to the writer.
应用推荐