From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 2 20:09:58 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EFAE216A4CE for ; Wed, 2 Mar 2005 20:09:58 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB34B43D1F for ; Wed, 2 Mar 2005 20:09:58 +0000 (GMT) (envelope-from julian@elischer.org) Received: from [208.206.78.97] (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id 04EE67A403; Wed, 2 Mar 2005 12:09:58 -0800 (PST) Message-ID: <42261D95.9020506@elischer.org> Date: Wed, 02 Mar 2005 12:09:57 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050218 X-Accept-Language: en, hu MIME-Version: 1.0 To: kamalp@acm.org References: <20050302172559.99964.qmail@web52702.mail.yahoo.com> In-Reply-To: <20050302172559.99964.qmail@web52702.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org cc: Lucas Holt Subject: Re: sched_4BSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2005 20:09:59 -0000 Kamal R. Prasad wrote: >--- Lucas Holt wrote: > > > >>Wouldn't a multi threaded program potentially need >>more cpu time than >>vi? >> >> > >No. That is not a given. > > > >>Multithreaded apps are created to do a lot of >>computation or >>because they have a lot of concurrent activity that >>might block right? >> >> >> >Threads are meant to take advantage of concurrency. >Maybe the freebsd implementation should implement NPTL >in entirety. > > NPTL? New Pthreads Library from Library? isn't that GPL'd? > > >>On Mar 1, 2005, at 2:49 PM, Julian Elischer wrote: >> >> >>>If you make 1000 threads, you get 1000 slots on >>> >>> >>the scheduler. (last >> >> >>>time I looked.. >>>Let me know if I'm wrong). >>> >>> >>> >depends on whether it is defined to execute in system >scope or not. > > I presume you have looked at it recently then.. I have not looked at the linux scheduler in a while.. how do they stop 100o threads from getting 1000 shots at the scheduler? >regards >-kamal > > >===== >------------------------------------------------------------ >Kamal R. Prasad >UNIX systems consultant >kamalp@acm.org > >In theory, there is no difference between theory and practice. In practice, there is:-). >------------------------------------------------------------ > >__________________________________________________ >Do You Yahoo!? >Tired of spam? Yahoo! Mail has the best spam protection around >http://mail.yahoo.com >_______________________________________________ >freebsd-hackers@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > >