RE: yield API

2007-12-13 Thread David Schwartz
Kyle Moffett wrote: > That is a *terrible* disgusting way to use yield. Better options: >(1) inotify/dnotify Sure, tie yourself to a Linux-specific mechanism that may or may not work over things like NFS. That's much worse. >(2) create a "foo.lock" file and put the mutex in that

RE: yield API

2007-12-13 Thread David Schwartz
Kyle Moffett wrote: That is a *terrible* disgusting way to use yield. Better options: (1) inotify/dnotify Sure, tie yourself to a Linux-specific mechanism that may or may not work over things like NFS. That's much worse. (2) create a foo.lock file and put the mutex in that Right,

Re: yield API

2007-12-12 Thread Kyle Moffett
On Dec 12, 2007, at 17:39:15, Jesper Juhl wrote: On 02/10/2007, Ingo Molnar <[EMAIL PROTECTED]> wrote: sched_yield() has been around for a decade (about three times longer than futexes were around), so if it's useful, it sure should have grown some 'crown jewel' app that uses it and shows

Re: yield API

2007-12-12 Thread Jesper Juhl
On 02/10/2007, Ingo Molnar <[EMAIL PROTECTED]> wrote: > > * David Schwartz <[EMAIL PROTECTED]> wrote: > > > > These are generic statements, but i'm _really_ interested in the > > > specifics. Real, specific code that i can look at. The typical Linux > > > distro consists of in execess of 500

Re: yield API

2007-12-12 Thread Jesper Juhl
On 02/10/2007, Ingo Molnar [EMAIL PROTECTED] wrote: * David Schwartz [EMAIL PROTECTED] wrote: These are generic statements, but i'm _really_ interested in the specifics. Real, specific code that i can look at. The typical Linux distro consists of in execess of 500 millions of lines of

Re: yield API

2007-12-12 Thread Kyle Moffett
On Dec 12, 2007, at 17:39:15, Jesper Juhl wrote: On 02/10/2007, Ingo Molnar [EMAIL PROTECTED] wrote: sched_yield() has been around for a decade (about three times longer than futexes were around), so if it's useful, it sure should have grown some 'crown jewel' app that uses it and shows

Re: yield API

2007-10-02 Thread Eric St-Laurent
day, i'm > of course interested in it. Do you still have intentions to add a directed yield API? I remember seeing it in the earlier CFS patches. - Eric - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordo

Re: yield API

2007-10-02 Thread Douglas McNaught
"linux-os \(Dick Johnson\)" <[EMAIL PROTECTED]> writes: > Whether or not there is a POSIX definition of sched_yield(), > there is a need for something that will give up the CPU > and not busy-wait. There are many control applications > where state-machines are kept in user-mode code. The code >

Re: yield API

2007-10-02 Thread linux-os (Dick Johnson)
On Tue, 2 Oct 2007, Ingo Molnar wrote: > > * David Schwartz <[EMAIL PROTECTED]> wrote: > >>> These are generic statements, but i'm _really_ interested in the >>> specifics. Real, specific code that i can look at. The typical Linux >>> distro consists of in execess of 500 millions of lines of

Re: yield API

2007-10-02 Thread Ingo Molnar
* David Schwartz <[EMAIL PROTECTED]> wrote: > > These are generic statements, but i'm _really_ interested in the > > specifics. Real, specific code that i can look at. The typical Linux > > distro consists of in execess of 500 millions of lines of code, in > > tens of thousands of apps, so

Re: yield API

2007-10-02 Thread Ingo Molnar
* David Schwartz [EMAIL PROTECTED] wrote: These are generic statements, but i'm _really_ interested in the specifics. Real, specific code that i can look at. The typical Linux distro consists of in execess of 500 millions of lines of code, in tens of thousands of apps, so there really

Re: yield API

2007-10-02 Thread linux-os (Dick Johnson)
On Tue, 2 Oct 2007, Ingo Molnar wrote: * David Schwartz [EMAIL PROTECTED] wrote: These are generic statements, but i'm _really_ interested in the specifics. Real, specific code that i can look at. The typical Linux distro consists of in execess of 500 millions of lines of code, in tens of

Re: yield API

2007-10-02 Thread Douglas McNaught
linux-os \(Dick Johnson\) [EMAIL PROTECTED] writes: Whether or not there is a POSIX definition of sched_yield(), there is a need for something that will give up the CPU and not busy-wait. There are many control applications where state-machines are kept in user-mode code. The code waits for

Re: yield API

2007-10-02 Thread Eric St-Laurent
in it. Do you still have intentions to add a directed yield API? I remember seeing it in the earlier CFS patches. - Eric - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo