Skip to content

Lock/Synchronization to protect PAB #4

@coderarjob

Description

@coderarjob

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    PMMPhysical Memory ManagementenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions