Subj : Re: help with basic multithreading in C on solaris To : comp.programming.threads From : Winbatch Date : Sat Feb 26 2005 09:24 pm "Paul Pluzhnikov" wrote in message news:m3u0nzxc7n.fsf@salmon.parasoft.com... > "Winbatch" writes: > >> I'm on solaris 8, using verison 7 of the forte compiler. Can you give me >> some more info on how to use the alternative libthread on solaris 8? > > Try "env LD_LIBRARY_PATH=/lib/lwp ./a.out" > > Cheers, > -- > In order to understand recursion you must first understand recursion. > Remove /-nsp/ for email. Paul, thanks, that did the trick. Interestingly enough, it was FAR slower than single threading it. As others mentioned, because I am writing to the same disk at the same time, I lose any potential advantages of multithreading. At least I was able to get it to work for the sake of comparison/education. Single threaded: 33 seconds Multi threaded: 57 seconds .