Hilos, Procesos, Sistemas operativos