Difference between process and thread in OS with examples