Page 1 of 1

multitasking?

Posted: Mon Oct 14, 2002 5:16 pm
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!

Re:multitasking?

Posted: Tue Oct 15, 2002 3:06 am
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.