Confused
Posted: Thu Aug 06, 2009 9:19 am
Hello everyone!
I'm currently writing a small kernel is x86-64 assembly. It's not too advanced at the moment. There is one feature I would like to add in the future which is threads/processes (or at least processes). I've read the pages on the wiki regarding this but what I can't wrap my head around is how it should load the next set of instructions for the CPU to execute (where/how do I store this?) and how should it only allow x milliseconds of execution time?
I understand that it should (or something close to):
Load the next process id
Save stack of suspended process
Load stack of next process
Give the new process time in cpu
Loop
Thanks for any help in advance!
I'm currently writing a small kernel is x86-64 assembly. It's not too advanced at the moment. There is one feature I would like to add in the future which is threads/processes (or at least processes). I've read the pages on the wiki regarding this but what I can't wrap my head around is how it should load the next set of instructions for the CPU to execute (where/how do I store this?) and how should it only allow x milliseconds of execution time?
I understand that it should (or something close to):
Load the next process id
Save stack of suspended process
Load stack of next process
Give the new process time in cpu
Loop
Thanks for any help in advance!
