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.

A Couple of Processes<br />

Figure 14: A Uniprocessor A Computer<br />

A Process<br />

inspect variables to see their values. If you suspect that there’s a logic<br />

problem, you can step the program through its statements, seeing what<br />

happens and where things are going wrong.<br />

What is actually occurring, however, is a lot more complicated, since a<br />

number of programs are always executing on your computer. For example,<br />

your computing environment could have daemons and other support programs<br />

executing, and your program can interact with them.<br />

Figure 15: A Program and<br />

Daemons A Daemon or<br />

Support Program<br />

Figure 16: Mail Using<br />

Daemons to Communicate<br />

A User Program<br />

These additional processes can simplify your program because it no longer<br />

has to do everything itself. It can hand off some tasks and not have to<br />

focus on how that work gets done.<br />

The preceding figure shows an architecture where the application program<br />

just sends requests to a daemon. This architecture is very simple. The type<br />

of architecture shown in the next figure is more typical. In this example, an<br />

email program communicates with a daemon on one computer. After<br />

receiving a request, this daemon sends data to an email daemon on<br />

another computer, which then delivers the data to another mail program.<br />

This architecture has one program handing off work to another. After the<br />

handoff, the programs do not interact. The program handing off the work<br />

just assumes that the work gets done. Some programs can work well like<br />

this. Most don’t. Most computational jobs do better with a model that<br />

16 Chapter 2: About Threads, Processes, and Groups

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

Saved successfully!

Ooh no, something went wrong!