Hi,
How about something like:
[tt]
ProcessID
______| |______
| |
Place Holder 0 Place Holder 01
___| |___ __| |__
| | | |
Task 0 Task 2 Task 1 Task3[/tt]
I'd say you could use place holders in the binary tree to keep track of any number of tasks. For example, the first task would be task 0x0000, the second would be task 0x0001. Then when you add a third task, the node for task 0x0000 would become a place holder with 2 child tasks 0x0000 and 0x0002. When the fourth task is created, the node for task 0x0001 becomes a place holder with 2 child tasks 0x0001 and 0x0003. If you write these task numbers in binary it makes much more sense....
Cheers,
Brendan
how 2 start multitasking?
Re:how 2 start multitasking?
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
-
viral
Re:how 2 start multitasking?
Hey.. Brenden...
Its nice ... you r nice in ascii drawings... Lets come on same topic again...
For newbees.... to start multitasking (i guess).
1. Read tuts about multitasking on OSDEVER.COM
2. Try to understand codes in many small C kernels.
3. Try to start it by copy-pasting it into ur kernel (if originals are free to grab) .
4. Be ready to face sevear reboots.....
Its nice ... you r nice in ascii drawings... Lets come on same topic again...
For newbees.... to start multitasking (i guess).
1. Read tuts about multitasking on OSDEVER.COM
2. Try to understand codes in many small C kernels.
3. Try to start it by copy-pasting it into ur kernel (if originals are free to grab) .
4. Be ready to face sevear reboots.....
