Grokking Multithreading and Concurrency for Coding Interviews
Vote

0% completed

​

Condition Variables

Know the Vocabulary

This lesson uses the terms below many times. Read them once now, and come back here when a later section needs one.

  • Condition: A fact about shared data that a thread waits for, such as "the sale is open." In code, it is a test, such as sale_open == True.
  • Polling: Checking a value again and again, with a short sleep between checks, until it changes.
  • Busy waiting: Polling with no sleep at all, which keeps a CPU core busy while the thread waits. It is also called spinning.

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content