1. A computing device for invoking native code from managed code using binary analysis, the computing device comprising: a memory; a processor coupled to the memory; a native code initiation module to receive a call to execute a native code segment from a thread configured to execute a managed code segment; a binary analysis module to perform a binary analysis of the native code segment to determine a number of instructions in the native code segment, determine whether the number of instructions satisfies a predefined threshold number of instructions, determine, in response to a determination that the number of instructions satisfies the predefined threshold number of instructions, that the native code segment has a high level of complexity, and determine, in response to a determination that the number of instructions does not satisfy the predefined threshold number of instructions, that the native code segment has a low level of complexity; and a native code execution module to determine a status of the thread based on the determined level of complexity and execute the native code segment based on the status of the thread, wherein the status of the thread indicates whether the native code segment is to be executed as a native or a managed code segment.