the only difference between a thread and a process on linux is how many structures they share. the function is identical.