A home-level name/token pair can anchor data for use by programs
running in the creating program's home address space.
Figure 1 shows the name/token pairs associated
with TASK 1 and TASK 2 running in the address space.
Figure 1. Using Home-Level
and Task-Level Name/Token Pairs
In
Figure 1, TASK 1:
- Creates a task-level name/token pair (N1,T1) and a home-level
name/token pair (N2,T2) using the IEANTCR callable service. The home-level
name/token pair is associated with the address space.
- Retrieves the token from N1,T1 any time during the task's processing.
TASK 2 does the following:
- Retrieves the home-level token from N2,T2 that was created by
TASK 1. TASK 2 can retrieve that token because both tasks are running
in the same home address space.
- Creates its own home-level name/token pair (N3,T3) that other
tasks running in the home address space can access.