Multiuser Lingo Dictionary > Multiuser Lingo Dictionary > count (thread)

 

count (thread)

Syntax

thread().count

Description

Multiuser Server server-side function; returns the total number of threads running on the server.

Example

These server-side statements count the number of threads currently in memory and then output their names and status to the server console:

threadCount = thread().count 
repeat with i = 1 to threadCount 
	t = thread(i) 
	put "Thread " & t.name & " status = " & t.status 
end repeat