今更すぎる感ありますが、sleepsortをjavaで実装しました。
class Sleepsort extends Thread{ private int num; public ExThread1(int i) { num = i; } public void run() { try { sleep(num); System.out.println(num); } catch (InterruptedException e) { e.printStackTrace(); } } public static void sleepsort(int num[]) { for(int i=0;i<num.length;i++) { ExThread1 thread = new ExThread1(num[i]); thread.start(); } } public static void main(String[] args){ int num[] = {3,2,10,4}; sleepsort(num); } }