# OS_InitThread

## C Specification

      #include <nitro/os.h>

      void OS_InitThread( void );

## Arguments

None.

## Return Values

None.

## Description

Initializes the thread library.
When the thread system is used, call this function once before creating threads. By calling the function, the application itself will be treated as a thread started by the `NitroMain` function with a priority of 16. (In the function reference and other documents, this is sometimes called a "launcher thread.") The idle thread is created during the thread system initialization. This is a special thread with a priority of 32 that has a lower priority than any other thread, which the user can set to a priority from 0-31. The idle thread does nothing and loops in Halt status.

## See Also

`OS_CreateThread, OS_ExitThread, OS_WakeupThread, OS_WakeupThreadDirect`

## Revision History

04/11/2005 Corrected description of application state after calling and added note about launcher threads.
04/27/2004 Added description of idle thread
02/26/2004 Added description of priority of starting thread
12/01/2003 Initial version