Dave Grothe <[EMAIL PROTECTED]> wrote: > I rewrote and simplified this routine. > It will now always wake up the queue runner thread.
Before waking up any new thread, shouldn't there be a check that enough threads are running already? Something like: - Find how many threads are running. - Find how mane queues are queued already + how many more are being added - Divide number of all queues on number of running threads if result is more than 4(or whatever) only than wake new thread up. Waking thread up per every qenable can be expensive overhead. my 2 cents, -- Eugene __________________________________________________________________ Introducing the New Netscape Internet Service. Only $9.95 a month -- Sign up today at http://isp.netscape.com/register Netscape. Just the Net You Need. New! Netscape Toolbar for Internet Explorer Search from anywhere on the Web and block those annoying pop-ups. Download now at http://channels.netscape.com/ns/search/install.jsp _______________________________________________ Linux-streams mailing list [EMAIL PROTECTED] http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams
