Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Futurebasic/Language/Reference/threadstatus

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

THREADSTATUS Function (+) Appearance (+) Standard (+) Console Syntax abortBoolean = THREADSTATUS[(ticks&)] Revised August, 2002 (Release 7) Description In a threaded function, it is necessary to tell the Thread Manager when you wish to yield to other running processes. A thread which yields very little time will run faster, but will cause all other operations on the computer to run at a slower rate. The THREADSTATUS function returns a Boolean result to indicate whether or not the thread should continue operation. One reason that a thread might be asked to cease operation would be if the computer was about to shut down. When you receive a non-zero result from the THREADSTATUS statement, you should exit the threaded function immediately. See Also THREADBEGIN; TIMER; ON TIMER