Site Task Context Thread Context Context Active State Inactive State Context Secondary Storage Figure 1 : Basic concepts . 2 Programming Model of XERO