Yield to other threads

Command group Flag affected Reversible Execute on client Platform(s)
Threads NO NO NO All

Syntax

Yield to other threads

Description

Yield to other threads is only applicable to the multithreaded server.

This command is a hint that the executing thread is waiting for other threads and is prepared to yield its processor time. It can be used when waiting for semaphores (since with the multithreaded server another client stack could be holding the semaphore).

Example

Do not wait for semaphores 
Repeat
  Prepare for edit
  If flag true
    Break to end of loop
  End If
  Yield to other threads
Until break