文件名称:neicunfenpei
介绍说明--下载内容均来自于网络,请自行研究使用
编写一个程序,创建两个线程,一个用于内存分配,另一个用于跟踪内存的分配情况并打印信息。将VirtualAlloc函数的参数ftAllocahonType分别改为MEM_RESET或MEM_TOP_DOWN,将nProtect参数分别改为PAGE_GUARD、PAGE_NOACCESS或PAGE_NOCACHE,再进行本实习的各项操作,再查看内存分配的各个结果,分析原因。尝试调换分配、回收、内存复位、加锁、解锁、提交、回收的次序,查看结果,并分析原因。-Write a program that creates two threads, one for memory allocation and one for the memory allocation tracking and print information. To the the VirtualAlloc function parameters ftAllocahonType were to be changed MEM_RESET or MEM_TOP_DOWN nProtect parameters to be changed PAGE_GUARD, PAGE_NOACCESS or PAGE_NOCACHE, then the operation of this internship, and then view the memory allocation results, analyze the causes. Try to swap allocation, recovery, memory reset, lock, unlock, submitted a recovery order to view the results and analyze the reasons.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
neicunfenpei.cpp