我最近一直在研究hadoop的调度机制.使用0.20.2(包括公平和容量)阅读了一些论文,LATE\Deadline Scheduler ...
有人试过吗?还是有导游?
无论如何
我试图将vc7.1项目转换为vs2010,这是我从codeproject获得的.(这里是链接htt p://www.codeproject.com/KB/cpp/transactions.aspx?fid = 11253&df = 90&mpp = 50&noise = 3排序=位置&视图=膨化&FR = 1#xx0xx
但经过转换和修改后的配置.
我发现它调试失败,它在DrawIt.exe中的0x0028e7b9处显示未处理的异常:0xC0000005:访问冲突写入位置0x00000000.
错误行是这样的
data = new(Mm::Allocate(sizeof(DocData), sid)) DocData();
Run Code Online (Sandbox Code Playgroud)
而且功能
void* Allocate(size_t size, SPACEID sid)
{
AUDIT
Spaces::iterator s = spaces.find(sid);
if (s == spaces.end())
return NULL;
Space& space = s->second;
if (!space.transacting)
return NULL;
size = max(size, sizeof(Free));
// TODO: assert that "data" is allocated in space
space.AssertData();
// are there any more free chunks?
if (!space.data->sFreeHead) {
space.data->Insert(space.More(size));
}
AUDIT
// find the first chunk at least …Run Code Online (Sandbox Code Playgroud)