合并thread和process