Presentation is loading. Please wait.

Presentation is loading. Please wait.

Process Identification (PId)

Similar presentations


Presentation on theme: "Process Identification (PId)"— Presentation transcript:

1 Process Identification (PId)
Each SDL process has a unique identifier, a value of data type PId. Special value NULL (no process) Predefined variables SELF: the process itself OFFSPRING: the most recent process created by SELF PARENT: SELF is OFFSPRING of PARENT SENDER: the process that sent the last signal received and processed by SELF 2007, rev. 08 SEG2101 Chapter 5

2 Use of PId Variables 2007, rev. 08 SEG2101 Chapter 5

3 Use of PId Variables (II)
2007, rev. 08 SEG2101 Chapter 5

4 5.5: Dynamic Generation of Process Instances
In SDL, a process may create other processes. The creation is shown by a dashed line from PARENT to OFFSPRING. Blocks cannot be generated dynamically. 2007, rev. 08 SEG2101 Chapter 5

5 Creation of Processes 2007, rev. 08 SEG2101 Chapter 5

6 PROCESS CUControl Create Symbol 2007, rev. 08 SEG2101 Chapter 5

7 Process parameters 2007, rev. 08 SEG2101 Chapter 5

8 Stop Symbol Processes are created by their parent.
A process terminates when it reaches a stop symbol. (Note: processes may not kill each other). 2007, rev. 08 SEG2101 Chapter 5


Download ppt "Process Identification (PId)"

Similar presentations


Ads by Google