docServerUserLandCom picture
Contents
Frontier Site

thread.getCount

Syntax thread.getCount ()

Params None

Action Scans Frontier's thread list, counting the number of threads that it contains.

Returns The number of threads in the thread list.

Examples thread.getCount ()

   » 2

Notes Unless agents are disabled, there is always at least one thread running. If you run a script that calls thread.getCount, there will be at least two threads.

Sleeping threads are in the threads list, and will be counted.

Threads in other processes, i.e. scripts being executed by Frontier for an OSA client, are not included in the thread list and are not counted.

See Also thread.getNthID

Frontier.countThreads

Frontier.enableAgents

system.compiler.threads


© Copyright 1992-2026 UserLand Software. Email: webmaster@userland.com.