[RC5] Linux MT client

Remi Guyomarch rguyom at mail.dotcom.fr
Sat Jan 31 00:14:47 EST 1998


Chris Arguin wrote:
> 
> I've just set up the multi-threaded client for the first time. It worked
> fine, but my process list looks odd to me:
> 
> ...
> nobody    1229  0.0  0.5   896   372   6 S N 23:43   0:00 /home/rc5/rc5des
> nobody    1230  0.0  0.5   896   372   6 S N 23:43   0:00 /home/rc5/rc5des
> nobody    1231 99.2  0.5   896   372   6 R N 23:43 878:51
> /home/rc5/rc5des
> ...
> 
> Why 3 processes? Isn't it supposed to be multi-threaded, not
> multi-process? Did I make some odd mistake in my init script that causes
> this to be run three times? That is a possibility I will allow, since I
> set it up as an /etc/rc.d/init.d/rc5 script. Who knows what mistakes I
> might have made :)
> 
> Anyway, is this expected behavior?

Yes, multithread clients launch 2 threads + one thread per processor.
Under Linux you will see three process, that's ok. AFAIK that's the
standard beaviour of multithread programs that use the clone() system
call. 

-- 
RÈmi		Don't waste your computer's time. Distribute it!
			http://www.distributed.net/
	    RC5 cores source code : http://wwwperso.hol.fr/~guyom001/

--
To unsubcribe, send 'unsubscribe rc5' to majordomo at lists.distributed.net
rc5-digest subscribers replace rc5 with rc5-digest



More information about the rc5 mailing list