[TriLUG] Questions about Threading

H Brett Bolen wingedlizard at nc.rr.com
Tue Mar 26 14:03:46 EST 2002


P. L. Charles Fischer wrote:
> The only way I know to check if a program will take advantage of a
> multi-processor system is to try it on a multi-processor box and look at the
> CPU usage.

if pthreads is dynamically linked in, then you can use ldd also:


: [brettb at reindeer video]$ ldd `which showimage`
:         libSDL_image-1.2.so.0 => /usr/local/lib/libSDL_image-1.2.so.0 (0x40014000)
:         libSDL-1.2.so.0 => /usr/local/lib/libSDL-1.2.so.0 (0x4002c000)
:         libpthread.so.0 => /lib/libpthread.so.0 (0x400ac000)
:         libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x400bf000)
:         <blah>...





More information about the TriLUG mailing list