issues
search
oscourse-tsinghua
/
rcore_plus
Rust version of THU uCore OS. Linux compatible.
MIT License
172
stars
26
forks
source link
Recycle tid on sys_wait4
#25
Closed
jiegec
closed
5 years ago
jiegec
commented
5 years ago
Possible solutions:
Quit whole process when main thread exits.
Never recycle tid until whole process exits.
Only recycle non-main thread before process exits, and recycle main thread id upon sys_wait.
wangrunji0408
commented
5 years ago
Detach pid and tid. Recycle tid once the thread exits. (?)
wangrunji0408
commented
5 years ago
Current solution (No.4):
ab62d54: Detach pid and tid. Now the pid is no longer the tid of its first thread.
27f5c7b: Detach user thread by default, so that it will release its tid on exit.
Possible solutions: