Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Mutual exclusion #12

Open
PatchMixolydic opened this issue Mar 14, 2020 · 2 comments
Open

Mutual exclusion #12

PatchMixolydic opened this issue Mar 14, 2020 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@PatchMixolydic
Copy link
Owner

While SMP isn't planned for a long while now, mutual exclusion will still be needed before task scheduling is added.

For example, say there were two processes. Process A allocates memory, but in the middle of malloc, its timeslice expires. Process B then also allocates memory. Without mutual exclusion, it's possible that both process A and process B might allocate the same block of memory.

@PatchMixolydic PatchMixolydic added the enhancement New feature or request label Mar 14, 2020
@PatchMixolydic PatchMixolydic added this to the 0.2 milestone Mar 14, 2020
@PatchMixolydic PatchMixolydic moved this from 0.2 to In progress in Spinel Progress Mar 20, 2020
@PatchMixolydic
Copy link
Owner Author

Partially done, but see #13

@PatchMixolydic
Copy link
Owner Author

PatchMixolydic commented Jul 31, 2021

Currently using spinlocks, but maybe atomics would be more performant? Need to investigate

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
Spinel Progress
  
In progress
Development

No branches or pull requests

1 participant