Thread: scheduler in linux

  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    13

    scheduler in linux

    hi

    i have a dought about linux scheduler.

    in linux there are 3 policies of scheduling ie; round robin, FIFO and time sclice.

    but if i want to have my own scheduling policy is it possible to insert such a scheduler in the linux kernel and use it instead of the default one.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    You can get the source code for Linux, so the answer is yes.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Jul 2006
    Posts
    13
    but , in the linux documentation it is written linux kernel does not support loding of modules related to scheduling policies.

    then when should these modules be loaded in the linux kernel. is it at boot time

  4. #4
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    You can't do it as a module. You can still write the thing, patch your kernel sources with it and recompile.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  5. #5
    Registered User
    Join Date
    Jul 2006
    Posts
    13
    what are these kernel patches & how can a sheduler be patched with the kernel
    Last edited by anjana; 05-28-2007 at 03:30 AM. Reason: kernel patches

  6. #6
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    You have to write them.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  7. #7
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    And seeing as you have no clue (as to what a kernel patch is), I wouldn't recommend it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Thinking of upgrading to linux...
    By Yarin in forum General Discussions
    Replies: 37
    Last Post: 07-24-2009, 11:40 AM
  2. Wireless Network Linux & C Testbed
    By james457 in forum Networking/Device Communication
    Replies: 3
    Last Post: 06-11-2009, 11:03 AM
  3. new scheduler in linux
    By anjana in forum Linux Programming
    Replies: 1
    Last Post: 05-28-2007, 02:55 AM
  4. installing linux for the first time
    By Micko in forum Tech Board
    Replies: 9
    Last Post: 12-06-2004, 05:15 AM