kernel/sched.c

From: Neal H Walfield (neal@walfield.org)
Date: Tue Apr 04 2000 - 00:29:11 EST


Hello,

I am a student studying operating systems. I have been to take a look at
the Linux scheduler and I have a few questions and a documentation patch.

1) Why all of the gotos, especially in schedule()? They all seem
   to be better replaced with either macros or inline functions or
   better yet, conditional else branches.

2) Lines 550-555 state:
        /*
         * We drop the scheduler lock early (it's a global spinlock),
         * thus we have to lock the previous process from getting
         * rescheduled during switch_to().
         */

   I do not see this being done. Is this a bug or an old comment?

The documentation patch is against a vanilla 2.3.99pre3 tree.

-Neal

-- 
----------------------------------------------------------------------------
Neal Walfield                                              neal@walfield.org
UMass Lowell - Fox 1512                                  Phone: 978-934-5347
                                                           Fax: 603-415-3645
Love is the triumph of imagination over intelligence.
                -- H. L. Mencken


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Apr 07 2000 - 21:00:11 EST