O'Reilly logo

Mastering Rust by Vesa Kaihlavirta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Atomic Rc

With computers, when something is atomic, it means that it is indivisible. In other words, it must happen as a whole or not at all. Here are a few examples:

  • Databases: The A in ACID is short for atomicity. It means that a set of database operations either succeeds completely or not at all. Furthermore, outside observers (on another connection, for example) never see any of the intermediate states; the database immediately goes from not having any of the operations done to all of them having being done.
  • Some file operations in Unix systems are atomic. For instance, the mv command that moves a file to another location is atomic. Like the previous example, this means that the move happens completely or not at all. No outside observer ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required