SMS: Java threads