multitasking?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
gtsphere

multitasking?

Post by gtsphere »

hey all,
i wrote a bunch of functions which add, remove, update, run processes, but i just thought of something

i'm using structs to set up the information for each process that is encountered. Like i have a max of 37 processes and each one can be entered and doing something, but defining the struct once, i would use a pointer to a linked list to make new ones? Kind of like a bakery line, so to speak, you come in, new one comes out (i'm not worried about prioriites right now)

if anyone has any ideas that would be great, thanks so much!
Tim

Re:multitasking?

Post by Tim »

Could you make your question more clear?

If I understand you right, then, yes, you would use a linked list of processes to keep track of everything. I suggest you put a malloc and free in your kernel to avoid the 37-process limit. Also, think about making threads the things you schedule. It's easier to add multithreading now at the start than it is to add it later.
Post Reply