Memória Temporária No Macos

Submitted by: Submitted by

Views: 129

Words: 603

Pages: 3

Category: Science and Technology

Date Submitted: 12/02/2012 03:38 PM

Report This Essay

Memória Temporária no MacOS

Artigo Original (em inglês)

Temporary Memory

In the Macintosh multitasking environment, each application is limited to a particular memory partition (whose size is determined by information in the ‘SIZE’ resource of that application). The size of your application’s partition places certain limits on the size of your application heap and hence on the sizes of the buffers and other data structures that your application uses. In general, you specify an application partition size that is large enough to hold all the buffers, resources, and other data that your application is likely to need during its execution.

If for some reason you need more memory than is currently available in your application heap, you can ask the Operating System to let you use any available memory that is not yet allocated to any other application. This memory, known as temporary memory, is allocated from the available unused RAM; usually, that memory is not contiguous with the memory in your application’s zone.

Your application should use temporary memory only for occasional short-term purposes that could be accomplished in less space, though perhaps less efficiently. For example, if you want to copy a large file, you might try to allocate a fairly large buffer of temporary memory. If you receive the temporary memory, you can copy data from the source file into the destination file using the large buffer. If, however, the request for temporary memory fails, you can instead use a smaller buffer within your application heap. One good reason for using temporary memory only occasionally is that you cannot assume that you will always receive the temporary memory you request.

Entendimento

No ambiente multitarefa do Macintosh, cada aplicação tem uma partição de memória particular, cujo tamanho é determinado pelo próprio aplicativo. O tamanho da partição da aplicação coloca certos limite no tamanho do...