Sleep Sort

Sleep Sort is time-based sorting technique.

In this sorting technique , we create different threads for each individual element present in the array. The thread is then made to sleep for an amount of time that is equal to value of the element for which it was created. This sorting technique will always sort in acsending order as the thread with the least amount of sleep time wakes up first and the number gets printed. The largest number will get printed in the end when its thread wakes up.

Read this article to understand Sleep Sort in depth

Have a doubt or thought? Join the discussion now

This is a companion discussion topic for the original entry at