Liblor / advanced_operating_systems_2020

Advanced Operating System Course at ETHZ
MIT License
19 stars 4 forks source link

Ensure thread safety for paging system and LMP RPC #111

Closed eikendev closed 4 years ago

eikendev commented 4 years ago

At the current stage, a mutex is shared between the paging system, morecore, and paging regions. This is necessary due to dependencies between those modules. The memory channel does have its own mutex, because the dependency is only one-way: a thread acquiring the mutex for the memory channel can complete without acquiring the mutex for the paging system, because no allocations are made during the RPC call.