What is "runloop"

The purpose of a loop run is to keep your thread busy when there are tasks to perform and put the thread to sleep when there is no.