那么,现在x指向一块内存,内存中是什么呢?
So, now I have x pointing at a chunk of memory what's in this memory though?
你增加了这一块内存。
当用户需要一块内存时,就请求给自己分配一定大小的内存。
When users need a block of memory, they make a request for a given size.
堆是在计算机RAM中的一块内存,它可以进行,动态内存分配。
So the heap is a chunk of memory in a computer's RAM that's conceptually allocated to what's called dynamic memory allocation.
数据库缓冲池通常是数据库共享内存中最大的一块内存。
The database buffer pool(s) area is normally the largest component of the database shared memory.
你获取的价值从哈希表是一个指向一块内存,一个整数。
The value you're fetching from the hashtable is a pointer to a block of memory with a single integer.
内存映射文件是把一块内存连接到一个文件的操作系统特性。
Memory-mapped files are an operating system feature that links a block of memory to a file.
堆管理器会查看可用内存的情况(使用特定算法)并返回一块内存。
The heap manager looks at the available memory (using a particular algorithm) and returns the block.
Scoped内存就是一块内存,它有一个由应用程序开发者定义的生命期。
Scoped memory is memory that has a lifetime defined by the developer of an application.
内存管理复杂性的主要原因是别名使用:同一块内存或对象具有多个指针或引用。
A primary contributor to the complexity of memory management is aliasing: having more than one copy of a pointer or reference to the same block of memory or object.
我们现在我们自己只能在某一块内存中,至少是现在,当然这样也会产生问题。
We're kind of restricting ourselves to only certain chunks of memory, at least for now, but it certainly creating problems.
一种嵌入式实时操作系统中内存释放的方法,预先在系统中划出一块内存区;
The invention relates to an internal memory releasing method for embedded real-time operating systems, portioning off a block of internal memory region in a system in advance;
一块内存,很快我们可以编写单个字符,然后将它们发送到设备在单个批处理。
It's a lump of memory that we can write individual characters to very quickly, and then send them all to the device in a single batch later.
POSIX提供了互斥函数来创建临界区,用于实施单线程对对象(一块内存)的独占访问。
POSIX provides the mutex function to create critical sections that enforce exclusive access to an object (a piece of memory) by a single thread.
人们可以通过简单的分配一块内存,小心地维护指向其的指针来实现一个循环缓冲区。
One could simply implement a circular buffer by allocating a chunk of memory, and maintaining pointers.
当然这不是一台计算机使用的第一块内存,还有其他内存,但是这是最初级的范例,以便于理解。
This of course, isn't the first block of memory to be used in a computer, there were others, but this is the earliest example that makes this easier to understand.
使用共享内存的方式,就可以避免大量数据在内存的拷贝与复制,只需要一块内存就可以实现了。
Can anyone help? Is there a better way to pass a block of data between to applications? Thanks in advance for any help.
传统内核不好实现这样的分布式构造,因为系统要保证不同处理器上的不同程序不会写入同一块内存。
In a traditional kernel this is difficult to implement; the system has to be sure that different programs don't try to write to the same memory from different processors.
所以A等于1,B等于2,现在swap函数自己开始,一行一行地执行,所以我声明了,叫做temp的一块内存。
So A gets 1, B gets 2, now the swap function itself starts executing line by line; so I declare a chunk of memory called temp.
如果无法将排序的数据整个放入排序堆中(排序堆是每次执行排序时分配的一块内存),它就会溢出到该数据库所有的临时表中。
If the sorted data cannot fit entirely into the sort heap, which is a block of memory that is allocated each time a sort is performed, it overflows into a temporary table owned by the database.
现在这一类型的值可以通过内建的函数new来分配,这将返回一个指针,指向一块内存单元,其所占内存槽初始化为零。
Values of this type can now be allocated using the built-in function new, which returns a pointer to the value in memory with all slots initialized to the zero value.
为了避免悬空指针(一种危险的情况,即一块内存已经被释放了,而一个指针还在引用它),必须在最后的引用释放之后才删除对象。
To avoid dangling Pointers (the dangerous situation where a block of memory is freed but a pointer still references it), you must delete the object only after the last reference is released.
窗口服务器为客户提供了一块共用内存区域用来绘图,然后(用gpu)将其混合为帧缓冲。
The window server provides a region of Shared memory to clients for drawing and then composites this into the frame buffer (on the GPU).
缓冲池是内存中的一块存储区域,用于临时读入和更改数据库页(包含表行或索引项)。
A buffer pool is an area of storage in memory into which database pages (containing table rows or index entries) are temporarily read and changed.
然而,模型只在内存中占用了非常小的一块地方:一个手机可以加载成千上万个模型。
The models, however, take up very little space in memory: a cell phone could hold thousands of them.
好的,这里有一块叫做堆的内存,这样你就可以获得你想要那么多的内存,因为它为你的程序而存在。
Well, there's a chunk of memory called the heap that you can grab as much memory as you want so long as it exists for your program.
嗯,如果你想调用一个函数,这就像把一个托盘放到另一个托盘上,托盘代表一块,函数可以使用的内存。
Well, if you want to call a function, it's like putting another tray on that stack of trays and that tray represents a chunk of memory that, that function can use.
因此,必然会引发长时间的暂停来整理碎片或进行压缩,堆将很多小块的自由内存区域整合为一块大的自由内存区域,从而满足大型分配请求。
Consequently, it must incur a long pause to defragment, or compact, the heap to coalesce many smaller free memory areas into larger free memory areas to satisfy a large allocation request.
因此,必然会引发长时间的暂停来整理碎片或进行压缩,堆将很多小块的自由内存区域整合为一块大的自由内存区域,从而满足大型分配请求。
Consequently, it must incur a long pause to defragment, or compact, the heap to coalesce many smaller free memory areas into larger free memory areas to satisfy a large allocation request.
应用推荐