octal
New Member
So I'm implementing the Fork system call in the emulated OS Nachos. User threads, of course, are made from the same class as kernel threads. So in implementing Fork I have to assign a unique thread id to newly created threads. Does anyone have any insight into where I should record the id? I figure I should record it in the Thread class, but if I do that then kernel threads will have an id, which I'm pretty sure they aren't supposed to have...