Added example for defining execution context (thread vs process).