GDSX Manual
Intertask Communication Example
Extended General Device Support (GDSX) Manual–134303
E-3
Configuring and Starting the Terminal Tasks
Configuring and Starting the Terminal Tasks
The last step is configuring the two tasks for the terminals, TASK1 and TASK2, and
starting them with the following SCF commands. In the following example, TASK1 and
TASK2 are configured with terminals that have access names of $STAR.#PTY7 and
$STAR.#PTY9.
> SCF
-> ALLOW 100 ERRORS
-> ALLOW 100 WARNINGS
-> TIMEOUT 999999
-> ADD SU $GDSX.#TASK1, ACCESSNAME $STAR.#PTY7,&
DEVICETYPE 6, DEVICESUBTYPE 4, PHYSRECLEN 80
-> ADD SU $GDSX.#TASK2, ACCESSNAME $STAR.#PTY9,&
DEVICETYPE 6, DEVICESUBTYPE 4, PHYSRECLEN 80
-> START SU $GDSX.#TASK1
-> START SU $GDSX.#TASK2
USAMPLE3
2.
!******************************************************************************
3. ! GDSX USCODE Generic DEVICE^HANDLER
!
4. ! Sample program for enhanced ITC messages between two DEVICE^HANDLER
tasks. !
5. !
!
6. ! The ONLY use of this example program is for demonstration purpose.
!
7. !
!
8. ! NO error-handling is done.
!
9. ! _______________
!
10. ! Lispproc ------>| |
!
11. ! (or FUP, ...) | ********* |
!
12. ! | * Task1 * |
!
13. ! | ********* |
!
14. ! -----> | Read $RCV |
!
15. ! | |
!
16. ! | Msg on device |-----------------> (Term)
!
17. ! | |
!
18. ! | Msg to Task2 |----\
!
19. ! | | |
!
20. ! <----- | Reply to $RCV | |
!
21. ! |_______________| |
!
22. ! | | |
!
23. ! | ********* | |
!
24. ! | * Task2 * | |
!