Using PIT for multitasking
Posted: Mon May 18, 2020 6:40 am
Hi.
I'm trying to implement preemptive multitasking, for this I'm going to use PIT(irq0) for this task.
I use this article to switch between tasks.
How I'm going to do this, I'll keep some sort of table with processes and their priorities.
While interrupting IRQ0(for example every 50 MS), I will call the task scheduler, which will change the priorities of various tasks and call yeild(), but I don't think that article is particularly suitable for me.
What can you advise me? Can there be any examples? Articles?
Thanks.
I'm trying to implement preemptive multitasking, for this I'm going to use PIT(irq0) for this task.
I use this article to switch between tasks.
How I'm going to do this, I'll keep some sort of table with processes and their priorities.
While interrupting IRQ0(for example every 50 MS), I will call the task scheduler, which will change the priorities of various tasks and call yeild(), but I don't think that article is particularly suitable for me.
What can you advise me? Can there be any examples? Articles?
Thanks.