# Method Pike.__Backend()->executing_thread()

Method executing_thread

  ``Thread.Thread` executing_thread()`
  ``int` executing_thread()`

Description

  Return the thread currently executing in the backend. I.e. the thread that has called `() and hasn't exited from that call. Zero is returned if there's no thread in the backend.

  If Pike is compiled without thread support then `1` is returned if we're inside the backend, `0` otherwise.