什么是'原子'的y结尾版本?

时间:2022-06-14 06:58:58

I don't know the correct way to explain this type of word in English, but it's similar to the word 'specificity'. You can describe something as specific using this word. I'm looking for a similar way to use 'atomic'. My intended usage of 'atomic' here is to describe the nature of an operation in programming: To perform an operation atomically, means that this operation completes 100% without being interrupted. It means the operation is guaranteed to be complete.

我不知道用英语解释这种词的正确方法,但它与“特异性”这个词类似。您可以使用此单词描述某些内容。我正在寻找一种类似的方式来使用'原子'。我在这里想要使用'原子'是为了描述编程中操作的本质:以原子方式执行操作意味着此操作100%完成而不会被中断。这意味着操作保证完成。

When discussing the property of being atomic with my coworkers, I wish to use it somewhat like: "This gives you the guarantee of atomicity". I know that 'atomicity' isn't a word (at least according to Google), but I hope that gives you an idea of what I'm trying to do.

在与同事讨论原子性质时,我希望使用它:“这可以保证原子性”。我知道'原子性'不是一个词(至少根据谷歌的说法),但我希望能让你知道我想要做什么。

What is the correct way of using 'atomic' in this way? Or am I maybe going down the wrong path here?

以这种方式使用'原子'的正确方法是什么?或者我可能会走错路?

4 个解决方案

#1


58  

Atomicity is a perfectly cromulent word. It is often used in the context of database transactions1,2,3 or thread safety4,5. For example, from 3 :

原子性是一个完美的词汇。它通常用于数据库事务1,2,3或线程安全4,5的上下文中。例如,从3:

Atomicity takes individual operations and turns them into an all-or-nothing unit of work, succeeding if and only if all contained operations succeed.

原子性采取单独的操作并将它们变成一个全有或全无的工作单元,当且仅当所有包含的操作成功时才​​能成功。

#2


12  

Wikipedia recognizes separate meanings for programming and databases which may be why there is a bit of an argument about what it means.

*认识到编程和数据库的独立含义,这可能就是为什么会有一些关于它意味着什么的争论。

But there is a more important point. People on this site may like "cromulence" and "atomicity" but your co-workers may not. If you have to ask here about the word and if we can't agree about its meaning and usage then you can be pretty certain it will not be clear to your intended readers. Say

但有一个更重要的观点。这个网站上的人可能喜欢“cromulence”和“atomicity”,但你的同事可能不喜欢。如果你不得不在这里询问这个词,如果我们不能就它的含义和用法达成一致,那么你可以非常肯定你的目标读者并不清楚。说

This guarantees that the process will be atomic.

这保证了该过程将是原子的。

#3


6  

Atomicity is fine, but I think it's important to understand atomicity and atomic operations. They aren't guaranteed to succeed, they are simply guaranteed to not complete partially. They can (and do) still fail, but it is an all or nothing operation.

原子性很好,但我认为理解原子性和原子操作很重要。他们不能保证成功,他们只是保证不会部分完成。他们可以(并且确实)仍然失败,但这是一个全有或全无的操作。

Atomic is used to describe an individual operation that is as small as it can possibly be - not made up of components itself. An example in programming would be to fetch the read/write status of a file. That operation is atomic. But you can still fail to fetch the status (I/O Exception). Or, you can succeed (this file is read-only, this one is read-write). You cannot, however, partially succeed (this file can be read, but we don't know if it can be written).

Atomic用于描述尽可能小的单个操作 - 不是由组件本身组成。编程中的一个例子是获取文件的读/写状态。那个操作是原子的。但您仍然无法获取状态(I / O异常)。或者,您可以成功(此文件是只读的,此文件是读写的)。但是,您不能部分成功(此文件可以读取,但我们不知道是否可以写入)。

So, be sure to use "atomicity" correctly. If you use it to state that something is guaranteed to succeed, you will be setting incorrect expectations and incorrectly using the word.

所以,一定要正确使用“原子性”。如果您使用它来声明确保某些事情成功,那么您将设置错误的期望并错误地使用该词。

#4


1  

The phrase

This gives you the guarantee of atomicity

这为您提供了原子性的保证

is perfectly valid, I have used it, or something very similar, on many occasions.

完全有效,我曾经多次使用它或类似的东西。

However, I've never heard "atomically" used like this. Instead, I would say

但是,我从来没有听过像这样使用“原子”的东西。相反,我会说

To perform an atomic operation, means...

执行原子操作,意味着......

#1


58  

Atomicity is a perfectly cromulent word. It is often used in the context of database transactions1,2,3 or thread safety4,5. For example, from 3 :

原子性是一个完美的词汇。它通常用于数据库事务1,2,3或线程安全4,5的上下文中。例如,从3:

Atomicity takes individual operations and turns them into an all-or-nothing unit of work, succeeding if and only if all contained operations succeed.

原子性采取单独的操作并将它们变成一个全有或全无的工作单元,当且仅当所有包含的操作成功时才​​能成功。

#2


12  

Wikipedia recognizes separate meanings for programming and databases which may be why there is a bit of an argument about what it means.

*认识到编程和数据库的独立含义,这可能就是为什么会有一些关于它意味着什么的争论。

But there is a more important point. People on this site may like "cromulence" and "atomicity" but your co-workers may not. If you have to ask here about the word and if we can't agree about its meaning and usage then you can be pretty certain it will not be clear to your intended readers. Say

但有一个更重要的观点。这个网站上的人可能喜欢“cromulence”和“atomicity”,但你的同事可能不喜欢。如果你不得不在这里询问这个词,如果我们不能就它的含义和用法达成一致,那么你可以非常肯定你的目标读者并不清楚。说

This guarantees that the process will be atomic.

这保证了该过程将是原子的。

#3


6  

Atomicity is fine, but I think it's important to understand atomicity and atomic operations. They aren't guaranteed to succeed, they are simply guaranteed to not complete partially. They can (and do) still fail, but it is an all or nothing operation.

原子性很好,但我认为理解原子性和原子操作很重要。他们不能保证成功,他们只是保证不会部分完成。他们可以(并且确实)仍然失败,但这是一个全有或全无的操作。

Atomic is used to describe an individual operation that is as small as it can possibly be - not made up of components itself. An example in programming would be to fetch the read/write status of a file. That operation is atomic. But you can still fail to fetch the status (I/O Exception). Or, you can succeed (this file is read-only, this one is read-write). You cannot, however, partially succeed (this file can be read, but we don't know if it can be written).

Atomic用于描述尽可能小的单个操作 - 不是由组件本身组成。编程中的一个例子是获取文件的读/写状态。那个操作是原子的。但您仍然无法获取状态(I / O异常)。或者,您可以成功(此文件是只读的,此文件是读写的)。但是,您不能部分成功(此文件可以读取,但我们不知道是否可以写入)。

So, be sure to use "atomicity" correctly. If you use it to state that something is guaranteed to succeed, you will be setting incorrect expectations and incorrectly using the word.

所以,一定要正确使用“原子性”。如果您使用它来声明确保某些事情成功,那么您将设置错误的期望并错误地使用该词。

#4


1  

The phrase

This gives you the guarantee of atomicity

这为您提供了原子性的保证

is perfectly valid, I have used it, or something very similar, on many occasions.

完全有效,我曾经多次使用它或类似的东西。

However, I've never heard "atomically" used like this. Instead, I would say

但是,我从来没有听过像这样使用“原子”的东西。相反,我会说

To perform an atomic operation, means...

执行原子操作,意味着......