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

Lock/Synchronization to protect PAB #4

Open
1 task
Tracked by #25
coderarjob opened this issue Nov 15, 2022 · 0 comments
Open
1 task
Tracked by #25

Lock/Synchronization to protect PAB #4

coderarjob opened this issue Nov 15, 2022 · 0 comments
Labels
enhancement New feature or request PMM Physical Memory Management

Comments

@coderarjob
Copy link
Owner

coderarjob commented Nov 15, 2022

Description

Currently allocation and freeing methods are not 'thread-safe'. When more than processes/threads of execution, can calls the PMM methods, the output is not deterministic and dangerous.

  • Pages can be allocated more than once (interrupting one allocation/free, another instance of allocation/free can run and allocate the same pages twice).
  • Race condition.

Tasks

  • Consider implementation of Mutex
@coderarjob coderarjob added the bug Something isn't working label Nov 15, 2022
@coderarjob coderarjob mentioned this issue Nov 15, 2022
8 tasks
@coderarjob coderarjob added enhancement New feature or request PMM Physical Memory Management and removed bug Something isn't working labels Aug 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PMM Physical Memory Management
Projects
None yet
Development

No branches or pull requests

1 participant