Home | Previous Page | Next Page   Creating User-Defined Routines > Developing a User-Defined Routine > Creating UDR Code >

Well-Behaved Routines

The most efficient way for a C UDR to execute is in the CPU virtual-process (CPU VP) class. However, to execute in the CPU VP, the UDR must be well-behaved. A well-behaved UDR adheres to a set of safe-code requirements that prevent the UDR from interfering with the efficient operation of the CPU VP. Table 85 summarizes the safe-coding guidelines for a well-behaved UDR. You must ensure that your C UDR follows these guidelines for it to safely execute in the CPU VP class. Otherwise, the UDR must execute in a user-defined VP class. For more information, see Using Virtual Processors.

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