Search code examples
blockingconditional-statementsoperating-systemspinning

OS Concepts in Layman Terms


What is the difference between the following concepts in layman terms: spinning lock, blocking and condition?


Solution

  • (If your GF doesn't already know this, she should be made aware that CS colleges are the most prolific users of plagarism detection software in the free world.)

    Spinning lock:

    To quote Lisa and Bart: "Are we there yet? Are we there yet? Are we there yet?" - cute in small quantities, extremely annoying in large doses.

    Blocking:

    The gate at the starting line of a horse track, or the locked door at a store before a product launch work as examples of blocking operations. You can't get your new iPad until some guy in a black t-shirt opens the door.

    Condition:

    Don't do anything (or keep doing what you're doing) until you hear otherwise from me.