Connecting Tech Pros Worldwide Forums | Help | Site Map

CPU Scheduling programs in c

Newbie
 
Join Date: Aug 2009
Location: India
Posts: 1
#1: Aug 13 '09
HELLO
Please send the CPU scheduling programs in c language

Expert
 
Join Date: Mar 2008
Location: Naperville, Illinois U.S.
Posts: 831
#2: Aug 13 '09

re: CPU Scheduling programs in c


CPU scheduling is an operating system responsibility. The relevant OS software might be written in C or it might not. The C Standard and C compiler are both unaware of CPU scheduling issues.

Are you asking for ...
  1. A language-neutral discussion of scheduling algorithms in general? If so, then Google or Wikipedia might be better places for you to go.
  2. Details about the specific scheduling algorithm(s) implemented for a particular operating system? If so, which one? There may be an OS-specific Bytes forum that is more suited to your query.
  3. A C implementation of any arbitrary scheduling algorithm?
In any case, your post sounds like a request for somebody here to do your homework for you. Our preferred mode of operation is for the poster to make an effort at writing their program and then to ask specific questions about issues that are blocking their progress.
Newbie
 
Join Date: Nov 2009
Posts: 1
#3: 4 Weeks Ago

re: CPU Scheduling programs in c


CPU Scheduling mini project is available in below link
If u got any errors please send to DELETED

Here is Download Link
DELETED

Thank You.......

Naveen Sullia
Member
 
Join Date: Aug 2008
Posts: 126
#4: 3 Weeks Ago

re: CPU Scheduling programs in c


Well the scheduler schedules something... most often processes... Those processes are orgranized in some way.. like a array or avl tree or somethinge else... The sheduler chooses one process from the collection of processes and gives it a quantum of time of CPU performing a context switch. (very simple view).
1) Choose how to represent a process and how to keep track of all processes.
2) Choose with which rules the scheduler will choose the next process (for example the rules differ for a system that wants to be responsive and for a real-time system).
3) Design an algorithm that applies the above rules. Take into consideration common gotchas like priority inversion and such stuff.
4) Implement the algorithm.

Note that some (or many or too few) of the parts that consist a scheduler must be done in assembly language.
RedSon's Avatar
Site Moderator
 
Join Date: Jan 2007
Location: America
Posts: 3,393
#5: 3 Weeks Ago

re: CPU Scheduling programs in c


Quote:

Originally Posted by NaveenSullia View Post

CPU Scheduling mini project is available in below link
If u got any errors please send to DELETED

Here is Download Link
DELETED

Thank You.......

Naveen Sullia

In the future, do not post your email address, help should be provided via this site and not through private emails so that we all may benefit.

Don't provide a link to download something without any explanation. If you want to share your project with others consider hosting it on one of several open source project websites.
Reply