process to threads