On Tue, 2005-02-01 at 11:31 +0100, Christian Hilgers wrote: > I guess it is scheduling problem too, but I think it's up to clamd. Maybe it > is caused by pthread? > > I did some further testing: > > You can put the sleep wherever you want to fix it. > A for loop can also cancel it out. > A sched_yield() only works with a high CPU load on the system!
You are lowering the cost of one function, by artificially increasing the time spent elsewhere. All you've probably achieved in to increase the runtime of your program. > > I tried it with two computers and a "real" socket connection. I got the same > results. The second run is slower. The second system uses the same scheduling rules. -trog
signature.asc
Description: This is a digitally signed message part
_______________________________________________ http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users