basic of thread and communication