# pthread

Tells the compiler to use pthreads library for multithreading support.

## Syntax

Linux: | -pthread

macOS: | -pthread

Windows: | None

## Arguments

None

## Default

OFF | The compiler does not use pthreads library for multithreading support.

## Description

Tells the compiler to use pthreads library for multithreading support.

### Note

This option only applies to host compilation. When offloading is enabled, it does not impact device-specific compilation. Offloading can only be enabled when using ifx.

## IDE Equivalent

None

## Alternate Options

Linux and macOS: -reentrancy threaded

Windows: /reentrancy:threaded

Parent topic: Linking or Linker Options