Can address space be recycled for multiple calls to MapViewOfFileEx without chance of failure?

前端 未结 4 690
自闭症患者
自闭症患者 2021-01-14 06:13

Consider a complex, memory hungry, multi threaded application running within a 32bit address space on windows XP.

Certain operations require n large buffers of fixed

4条回答
  •  一生所求
    2021-01-14 06:48

    You could brute force it; suspend every thread in the process that isn't the one performing the mapping, Unmap/Remap, unsuspend the suspended threads. It ain't elegant, but it's the only way I can think of off-hand to provide the kind of mutual exclusion you need.

提交回复
热议问题