Dear fellow kernel programmers,
Currently there is no way in KolibriOS to tell which thread belongs to what process, because there is no real process identifier.
There is field called PID, but it practice, it seems to be the thread identifier.
Therefore, I propose to rename the field pid in struct TASKDATA to tid, and introduce a new field pid.
All current references to TASKDATA.pid shall be changed to TASKDATA.tid
The procedure new_sys_threads should then be updated to copy the PID of the process to the new thread.
(Single threaded processes will have PID == TID)
Am I forgetting something? Do you think it's a good idea?
processes and threads
-
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein
You can check APPDATA.dir_table. It contain page directory table address and all multi-threads share same value.
I agree if it not requires correction code at the application level.
Всем чмоки в этом проекте! Засуньте эти 11 лет себе в жопу!
Who is online
Users browsing this forum: No registered users and 4 guests