C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 05-27-2007, 11:17 PM   #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.
anjana is offline   Reply With Quote
Old 05-27-2007, 11:21 PM   #2
and the hat of Jobseeking
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,683
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.

Salem is offline   Reply With Quote
Old 05-27-2007, 11:33 PM   #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
anjana is offline   Reply With Quote
Old 05-28-2007, 02:54 AM   #4
Cat without Hat
 
CornedBee's Avatar
 
Join Date: Apr 2003
Posts: 8,492
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
CornedBee is offline   Reply With Quote
Old 05-28-2007, 03:24 AM   #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
anjana is offline   Reply With Quote
Old 05-28-2007, 03:26 AM   #6
Cat without Hat
 
CornedBee's Avatar
 
Join Date: Apr 2003
Posts: 8,492
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
CornedBee is offline   Reply With Quote
Old 05-29-2007, 12:59 AM   #7
Woof, woof!
 
zacs7's Avatar
 
Join Date: Mar 2007
Location: Australia
Posts: 3,295
And seeing as you have no clue (as to what a kernel patch is), I wouldn't recommend it.
__________________
"I.T. gets the chicky-babes" - M. Kelly
bakefile | vim
zacs7 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 03:17 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22