-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Multitasking! #39
Comments
Nuuuuu not unix stuff ): Q is meant to be from scratch 👍 But shouldn't we make the current things work better before thinking about multitasking because multitasking is pretty hard 😞 |
I was actually able to get simple scheduler working (but I only tested it with one task/thread/process). And I can't load executab;e files so I don't think it really counts as multitasking. |
good enough |
ok den sounds cool |
I will try to make "writer" and "cat" separate processes (so that I'm sure it works). |
👍 |
1 similar comment
👍 |
Somehow I stop getting interrupts when I add second thread/task/process. |
I partially got it working with multiple kernel tasks. Trying to figure out why it sets stack pointer to wrong but accidentally "correct" value. Is there some way to actually debug it other than adding a bunch of prints? |
You can debug the booting process using Debug Mode in the OS selection on grub, but idk about after you have booted the OS.. |
Moving it to ready |
Anyone know what's going on with this multitasking? |
Did Barteks2x quit? |
I don't think so? |
For last few days I didn't have enough free time. I will try to do something this weekend. |
Maybe |
*edited my comment - added what if I use nop. |
What is even more weird - if I move that |
I tried adding a few NOPs - the same as with only one. |
gl 👍 Your code looks pretty good so far |
Maybe push some value? |
What if you don't |
Bad things happen (but that's because for some reason I can't force it to use different stack yet). |
oh. ok |
I am having trouble figuring this one out... Maybe a Unix
fork
execve
like style or a brand new one be implemented?The text was updated successfully, but these errors were encountered: