the thread() command is part of standard processing
thread()
see thread() / Reference / Processing.org