Slashdot Mirror


Schrödinger's Cat and RCU (Well, Structured Procrastination, Actually)

davecb writes "Paul E. McKenney, one of the Linux RCU implementors, addresses the problem of synchronization using structured deferral on, what else, Mr Schrödinger's famous cat. Courtesy of deferral/procrastination, the cat can be both alive and dead at the same time. 'In this example, Schrödinger would like to construct an in-memory database to keep track of the animals in his zoo. Births would of course result in insertions into this database, while deaths would result in deletions. The database is also queried by those interested in the health and welfare of Schrödinger's animals. Schrödinger has numerous short-lived animals such as mice, resulting in high update rates. In addition, there is a surprising level of interest in the health of Schrödinger's cat, so much so that Schrödinger sometimes wonders whether his mice are responsible for most of these queries. Regardless of their source, the database must handle the large volume of cat-related queries without suffering from excessive levels of contention. Both accesses and updates are typically quite short, involving accessing or mutating an in-memory data structure, and therefore synchronization overhead cannot be ignored.'"

10 of 43 comments (clear)

  1. Huh? by cultiv8 · · Score: 4, Insightful

    I feel like this submission was generated by SCIgen.

    --
    sysadmins and parents of newborns get the same amount of sleep.
    1. Re:Huh? by Dahamma · · Score: 4, Informative

      The summary is completely unintelligible because it does an absolutely ridiculous job of quoting TFA. TFA, on the other hand, is actually a fairly interesting read... IMO go read the article and skip any slashdot summary or comments and you will be wiser for it.

  2. So simple now! by GlobalEcho · · Score: 5, Funny

    I know! Let's explain the workings of a deterministic computational system using analogies to quantum mechanics! Everyone find quantum mechanics clear and intuitive.

    // Advanced degrees in physics and math
    /// Still find article unclear
    //// Reference counting makes sense already

    1. Re:So simple now! by nightcats · · Score: 2

      Oh, I did worse than that! I tried to prop up an entire cosmology with the same metaphor.

      --
      Development is programmable; Discovery is not programmable. (Fuller)
    2. Re:So simple now! by blue+trane · · Score: 2

      I took the Berkeley Quantum Computation MOOC through Coursera, taught by Umesh Vazirani, twice. First time I maybe got half of what was in it (though I passed, barely); second time maybe 70% (again barely passing; homeworks and tests had mostly different problems). I learned to manipulate Hamiltonians in Octave to find their eigenvectors and eigenvalues, for example. So now I have a better sense of the math used to describe a superposition state, and I feel better informed about current models and ways of thinking about quantum phenomena such as superposition and entanglement.

      The current Coursera MOOC "Exploring Quantum Physics" involves a lot more math. Most of it goes over my head, but still there are some basic concepts that I can grasp; and just seeing the math laid out is somewhat helpful to know what it looks like and have some sense of how it's being used.

      In conclusion, the MOOCs on quantum computation/physics have helped me develop a better understanding of the mathematics behind the models. So I feel more informed than I was before, approaching the subject simply from a philosophical viewpoint. Yes, I'm a "N00B", but so was the poster I was replying to; now I'm a little less ignorant.

  3. Slashdot Translation by VortexCortex · · Score: 5, Funny

    Slashdot Translation: It's similar to how an article exists in a superposition of both interesting and uninteresting at the same time, so long as no one reads it. Rather than RTFA and collapse the superposition, we can simply read the quantumly entangled comments to determine the degree of interest in accordance with our groupthink.

  4. This had to be done by Anonymous Coward · · Score: 3, Funny

    He can be both ignorant and knowledgeable at same time until measured.

    And if in an entangled pair of students one just copies notes off other, measuring one of them will immediately collapse the wave function of another.

  5. Re:Always wondered how Schroedinger ... by Livius · · Score: 2

    Schrödinger's whole point was that for a macroscopic system as complex as a cat to be simultaneously alive and dead was obvious nonsense, and therefore there was something still missing in our understanding of quantum mechanics.

    Ironically, the outcome was people agreeing that quantum weirdness is, well, weird, but simultaneously believing he was talking about a cat actually being both alive and dead.

  6. Re:Always wondered how Schroedinger ... by quax · · Score: 2

    So probably he turning in his grave with a spin 1/2 :-)

  7. Re:No. by Jeremi · · Score: 2

    They're going to want reports and stats not just on the current living animals. I didn't RTFA ('natch) but if they missed that requirement, what else have they overlooked?

    I think what you overlooked was that the "database" in the article was just a colorful contrivance to illustrate common usages of an in-memory data structure (e.g. a page-table in the Linux kernel) and not a True Database in the SQL/web-server/generate-me-a-report sense.

    --


    I don't care if it's 90,000 hectares. That lake was not my doing.