prevent被调出的对象(VirtualLock当量) [英] Prevent an object from being paged out (VirtualLock equivalent)

查看:132
本文介绍了prevent被调出的对象(VirtualLock当量)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将一去保存在内存中的对象,这样就不会被换出在.NET中的操作系统?

How would one go about keep an object in memory such that it won't be paged out by the OS in .Net?

即。类似的东西来VirtualLock,但是一个对象上操作,使得如果压实发生并且对象被移动它仍然不会被换出,等。(我想人们可以针对象的,确定哪些页面它属于,然后VirtualLock这些网页,但似乎不期望的原因是多方面的。)

i.e. Something similar to VirtualLock, but operating on an object, such that if compacting occurs and the object is moved it still would not be paged out, etc.. (I suppose one could pin the object's, determine what pages it belongs to, and then VirtualLock those pages, but that seems non-desirable for many reasons.)

如果可能的话,你能指点一个参考或工作样品? (C#最好)

If possible, could you point me to a reference or working sample? (C# ideally)

推荐答案

你看这一个 HTTP :?//www.$c$cplex.com/NonPagedCLRHost

这篇关于prevent被调出的对象(VirtualLock当量)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆