Using runnable instead of thread