The mi_yield() function

The mi_yield() routine yields processing to other database server threads.

Syntax

void mi_yield()
Valid in client LIBMI application? Valid in user-defined routine?
No Yes

Usage

The mi_yield() function causes the thread that is executing the C UDR to yield control of the virtual processor that is executing it. When the virtual processor is released, it can execute other threads.

Use the mi_yield() call periodically when the routine does CPU or I/O intensive work. The mi_yield() routine is useful in portions of code, such as tight loops, that would otherwise tie up the processor.

Return values

None.