Implement multithread using libuv