30.01.2013 Views

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

How Parallelism Affects Behavior<br />

How Parallelism Affects Behavior<br />

A parallel program consists of some number of processes, each involving<br />

some number of threads. Processes fall into two categories, depending on<br />

when they are created:<br />

� Initial process<br />

A preexisting process from the normal run-time environment (that is, created<br />

outside <strong>TotalView</strong>) or one that was created as <strong>TotalView</strong> loaded the<br />

program.<br />

� Spawned process<br />

A new process created by a process executing under CLI control.<br />

<strong>TotalView</strong> assigns an integer value to each individual process and thread<br />

under its control. This process/thread identifier can be the system identifier<br />

associated with the process or thread. However, it can be an arbitrary value<br />

created by the CLI. Process numbers are unique over the lifetime of a debugging<br />

session; in contrast, thread numbers are only unique while the process<br />

exists.<br />

Process/thread notation lets you identify the component that a command<br />

targets. For example, if your program has two processes, and each has two<br />

threads, four threads exist:<br />

Thread 1 of process 1<br />

Thread 2 of process 1<br />

Thread 1 of process 2<br />

Thread 2 of process 2<br />

You identify the four threads as follows:<br />

1.1—Thread 1 of process 1<br />

1.2—Thread 2 of process 1<br />

2.1—Thread 1 of process 2<br />

2.2—Thread 2 of process 2<br />

Types of IDs<br />

Multi-threaded, multi-process, and distributed programs contain a variety<br />

of IDs. The following types are used in the CLI and the GUI:<br />

System PID This is the process ID and is generally called the PID.<br />

System TID This is the ID of the system kernel or user thread. On<br />

some systems (for example, AIX), the TIDs have no obvious<br />

meaning. On other systems, they start at 1 and<br />

are incremented by 1 for each thread.<br />

<strong>TotalView</strong> <strong>Users</strong> <strong>Guide</strong>: version 8.7 209

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!