Complie multi-threads