Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
matlab code for edf algorithm
#1

matlab code for edf algorithm
Earliest Deadline First (EDF) C Source Code

About EDF Algorithm
You may refer the following page link for very basic info about EDF Algorithm

http://pradeepkumarearliest-deadline-first-edf-algorithm/

Students were asking me about the source code of EDF algorithm. Here is the C program that is developed using low level Linux libraries. So these codes will not work under Windows Operating Systems.

Also, I have modified the source code of this program to Energy Efficient EDF algorithm that handles the energy level codes. When the tasks are scheduled with higher frequency, higher energy will be consumed and less frequency with less energy, as the power occupation is directly proportional to Square of Frequency.

(NB: I don t know from where I downloaded the source code, if you know let me know, I will give credits to the author of the code. And I myself give credit to myself that I have added some extra code to make it energy efficient).

There are three files that runs the EDF algorithm

1. eg.c (which is a c file for task creation, each task runs with loop)

2. eedf.h (all functions are declared here, we call them function prototypes)

3. eedf.c (The entire source code of eedf algorithm)

You can download the entire source code here (If you are really happy with the code, you may consider donating us, as we spend so much time to develop the code, understand and modify it, Paypal ID: [email protected])

How to run this program
Copy all the files in a folder without renaming them.

This code I have tried in Fedora 21 (It works well with Ubuntu, Mint, 32 bit or 64 bit OS). If for any reason, if the program hangs, press Ctl +C to close the process

Open the terminal and give this command

$] gcc -o eedf eedf.c eg.c

$] ./eedf

To redirect the output of this program to another file (for processing the tasks, then use this command)

$] ./eedf > file.out
if you again feel trouble on matlab code for edf algorithm please reply in that page and ask specific fields in matlab code for edf algorithm
Reply

#2
i am looking for matlab code for implementing earliest deadline first scheduling algorithm a.k.a EDF algorithm
Reply

#3
i am looking for matlab code for implementing earliest deadline first scheduling algorithm a.k.a EDF algorithm
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Powered By MyBB, © 2002-2024 iAndrew & Melroy van den Berg.