Completed multi-threading and communication between threads