Concurrency

  • Javascript can only do one thing at a time (mostly)
  • Only one line of your code can run at time
  • If you try to do two things at once, the one that started later has to wait
  • This can cause a page to seem frozen
  • Doing two things at the same time == concurrency

9 / 27