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

Scheduler schedules once sometimes, othertimes doesn't schedule at all #31

Open
Frityet opened this issue Apr 26, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@Frityet
Copy link
Collaborator

Frityet commented Apr 26, 2023

Describe the bug
The scheduler, which was introduced recently (d82913c) has a major bug of which, as described in the title, the scheduler will only schedule once, or never, and seems to get blocked by one thread.

To Reproduce
Steps to reproduce the behavior:

  1. Build LuaOS with more than 1 program (Userland/luaos-dev-1.rockspec has more than 1 module being built in its build.modules field)
  2. Launch LuaOS

Expected behavior
All programs should share equal time active before being rescheduled

Screenshots
Video demonstration

Additional context

This is most likely caused by a race condition in the scheduler, and therefore could be fixed or at least helped by #25 due to the fact it introduces Futexes to the threads

@Frityet Frityet added the bug Something isn't working label Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant