Help Contents / Workspace Management / Workspace Queries / countThreads

countThreads

outputs the current number of Logo threads  which have been started using the primitive Thread. 

Example: 

	repeat 10 [Thread [repeat 1000 [print countThreads waitMS 100]]] 

Its output is something like 

	3 
	3 
	6 
	6 
	8 
	10 
	10 
	...	;lots of 10s... 
	10 
	10 
	9 
	9 
	8 


previous: Threads	next: getOwner
