KBrewster
05/23/2020, 2:20 PMstreetsofboston
05/23/2020, 2:27 PMThread.sleep()
will block the thread that calls it. The thread will just sit there and do nothing until it gets interrupted and continues.
delay()
will suspend and the thread that calls it will go and do other tasks/jobs if there are any. It resumes when the delay timeout has been reached.KBrewster
05/23/2020, 2:29 PM