# OS_InitThread

## C Specification

#include <nitro/os.h>

void OS_InitThread( void );

## Description

Initializes the thread library.

When the thread system is used, call this function once before creating threads. The calling routine is also automatically made into a thread. This thread will have a priority of 16.

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.

## Arguments

None

## Return Values

None

## See Also

`OS_CreateThread, OS_ExitThread, OS_WakeupThread, OS_WakeupThreadDirect`

## Revision History

04/27/2004 Added description of idle thread.
26/02/2004 Added description of priority of starting thread.
12/01/2003 Initial version