informix
Informix DataBlade API Programmer's Manual
DataBlade API Function Descriptions

mi_yield()

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

Syntax

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.


Informix DataBlade API Programmer's Manual, Version 9.2
Copyright © 1999, Informix Software, Inc. All rights reserved