GetAgentId Function

Action

Retrieves a unique ID for the agent running the benchmark.

Include file

Kernel.bdh

Syntax

GetAgentId() : number;

Return value

Unique identification number for the agent running the benchmark. The ID is 0 for the first agent, 1 for the second agent, and n-1 for the nth agent.

Example

dcltrans
  transaction TMain
  var
    nAgentId: number;
  begin
    nAgentId := GetAgentId();
    write("agent ID = "); write(nAgentId); writeln;
  end TMain;