[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ogfs-dev]How to translate this to 2.5?



On Monday 05 May 2003 01:56 am, Dominik Vogt wrote:
> On Wed, Apr 30, 2003 at 11:33:07AM -0500, Brian Jackson wrote:
> > On Wednesday 30 April 2003 11:15 am, Dominik Vogt wrote:
> > > What is the correct translation of this code to the 2.5 kernel?
> > >
> > > #define osi_schedule() \
> > > 	do { current->policy |= SCHED_YIELD; schedule(); } while(0)
> >
> > isn't that the same thing as the yield() work we (you) did recently.
>
> But what is the difference between schedule() and yield()?

I think there is no difference if the current task is set as runnablethe 
difference is that the yield function now sets the current task to runnable 
instead of doing it separately. At least that is what I understand.

--Brian Jackson

>
> Bye
>
> Dominik ^_^  ^_^
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Opengfs-devel mailing list
> Opengfs-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/opengfs-devel

-- 
OpenGFS -- http://opengfs.sourceforge.net
Home -- http://www.brianandsara.net


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opengfs-devel mailing list
Opengfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opengfs-devel

[Kernel]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Clusters]     [Linux RAID]     [Yosemite Hiking]     [Linux Resources]

Powered by Linux