There will be two pointers: next that are used by the scheduler to pick the next thread to execute, and next_sibling will contain the next thread within the same task.
Made functions to handle add_thread to task, get_task
Add parent reference to create_thread, if not null it will be added to the specified task.
Add new field for task_threads.
There will be two pointers: next that are used by the scheduler to pick the next thread to execute, and next_sibling will contain the next thread within the same task.
Made functions to handle add_thread to task, get_task
Add parent reference to create_thread, if not null it will be added to the specified task.