Date: Tue, 30 Oct 2001 11:46:16 -0600 From: Dan Nelson <dnelson@allantgroup.com> To: Mihai Chelaru <mihai@romtelenet.org> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Pthread implementation Message-ID: <20011030114616.A55278@dan.emsphone.com> In-Reply-To: <3BDE7927.66CB49FA@romtelenet.org> References: <3BDE7927.66CB49FA@romtelenet.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Oct 30), Mihai Chelaru said: > I have a problem using freebsd pthreads. After i launch a number of > aprox. 10000 threads (not concomitent but in a period of 1 day) the > process suddenly goes up to 99% of CPU. i did a truss on that process > and look what i got: > > gettimeofday(0x28125188,0x0) = 0 (0x0) > poll(0x8070000,0x4,0x253a) = 1 (0x1) > gettimeofday(0x28125188,0x0) = 0 (0x0) > poll(0x8070000,0x4,0x253a) = 1 (0x1) See if you can strip your program down the minimal amount required to trigger the bug. It could be a pthreads bug, or it could be a bug in your program. Also try running strace (in ports); it'll tell you which filedescriptor is ready according to poll. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011030114616.A55278>