Home | Previous Page | Next Page   Creating User-Defined Routines > Managing Memory >

Understanding Shared Memory

When a C UDR executes in a virtual processor (VP), it allocates memory from the shared memory of the database server. To perform this allocation, the UDR takes the following steps:

  1. Ensures that dynamic memory allocations come from the shared memory of the database server

    All virtual processors can access database server shared memory.

  2. Chooses a memory duration to associate with this memory

    The database server automatically reclaims its shared memory through an associated memory duration.

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]