Skip to content
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

Schedule processes when the hardware timer ticks #13

Open
5 tasks
howardlau1999 opened this issue Dec 30, 2021 · 0 comments
Open
5 tasks

Schedule processes when the hardware timer ticks #13

howardlau1999 opened this issue Dec 30, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@howardlau1999
Copy link
Owner

howardlau1999 commented Dec 30, 2021

The very first step towards a working minimal operating system is the ability to do some initialization work after booting up and handle interrupts where it can have a chance to schedule and switch processes.

To achieve this, we should

  • Write the entry function which does all the initialization work including initializing necessary data structures and setting up interrupt handler
  • Define a minimal structure of PCB(Process Control Block)
  • Implement the context switch function
  • Implement a very basic scheduler
  • Call the scheduler and switch to target process when the hardware timer ticks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants