对象初始化两种不同方法创建对象:1、是[类名 new],2、[[类名 alloc] init].这两种方法是等价的,不过Cocoa惯例使用alloc和init而不使用new。分配对象分 配(allocation)是一个新对象诞生的过程。向某个类发送alloc消息,就能为类分配一块足够大的内存,以存放...
分类:
其他好文 时间:
2015-11-30 17:49:05
阅读次数:
143
The minimum allocation for every container request at the RM, in MBs. Memory requests lower than this won't take effect, and the specified value will....
分类:
其他好文 时间:
2015-11-28 10:31:27
阅读次数:
206
5.1 Introduction 这章介绍的standard I/O都是ISOC标准的。用这些standard I/O可以不用考虑一些buffer allocation、I/O optimal-sized的细节,增加了易用性。但是也有一些问题。5.2 Streams and FILE Object....
分类:
其他好文 时间:
2015-11-28 00:59:31
阅读次数:
325
xdoj1065 Efficent Allocation 动态开点的线段树1065: Efficent Allocation时间限制:8 Sec内存限制:256 MB提交:24解决:3[提交][状态][讨论版]题目描述由于XDOJ评测机的一些奇怪行为,本题时限调整到8s。lx正在写一个内存分配器,支...
分类:
其他好文 时间:
2015-11-26 13:07:46
阅读次数:
318
本文转载是网络,只叙述方法,,,第一问:Turn off page allocation in xv6修改sysproc.c中的sys_sbrk()函数即可: 1 int sys_sbrk(void) 2 { 3 int addr; 4 int n; 5 if(a...
分类:
其他好文 时间:
2015-11-19 00:24:18
阅读次数:
387
原文出处:http://blog.itpub.net/10113559/viewspace-630012/A.FAT16(最大分区2GB,最大文件2GB ,最大容量)在说明FAT16文件系统之前,我们必须清楚FAT是什么?FAT(File Allocation Table)是“文件分配表”的意思。顾...
分类:
其他好文 时间:
2015-11-12 23:23:03
阅读次数:
350
一、jmap -heap PIDusing parallel threads in the new generation. ##新生代采用的是并行线程处理方式using thread-local object allocation.Concurrent Mark-Sweep GC ##同步并行垃圾回...
分类:
其他好文 时间:
2015-10-31 00:21:09
阅读次数:
182
malloc函数(1)解释malloc函数作用 malloc的全称是memory allocation,中文叫动态内存分配。 malloc函数是想系统申请分配指定size个字节的内存空间。malloc的返回类型是void*类型。void*表示为确定类型的指针。C/C++规定void*类型可以强制.....
分类:
编程语言 时间:
2015-10-26 20:28:22
阅读次数:
204
第一题:数组#include
const int MAXSIZE = 20;
class List{
public:
List()
{
arr = new int[MAXSIZE]; //Allocation the space
length = 0; //the length of current array
cout<<...
分类:
其他好文 时间:
2015-10-25 12:19:25
阅读次数:
175
2D Array's memory allocation
分类:
编程语言 时间:
2015-10-24 21:57:09
阅读次数:
190