LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   fatal error: linsched.h: No such file or directory #include "linsched.h" (https://www.linuxquestions.org/questions/linux-newbie-8/fatal-error-linsched-h-no-such-file-or-directory-include-linsched-h-4175581953/)

navodi 06-10-2016 01:10 PM

fatal error: linsched.h: No such file or directory #include "linsched.h"
 
#include "linsched.h"
int main(int argc, char **argv)
{
int count, mask;
struct linsched_topology topo;
int type = parse_topology(argv[2]);

topo = topo_db[type];

// Allow all tasks to use any processor.
mask = (1 << count) - 1;

// Initialize the topology as provided by the script interpreter
linsched_init(&topo);

// Create five processor-bound tasks (sleep 10, busy 90)
create_tasks(5, mask, 10, 90);

// Create five I/O-bound tasks (sleep 90, busy 10)
create_tasks(5, mask, 90, 10);

// Create a busy real-time round-robin task with a priority of 90
linsched_create_RTrr_task( linsched_create_sleep_run(0,100), 90 );

// Run the simulation
linsched_run_sim(TEST_TICKS);

// Emit the task statistics
linsched_print_task_stats();

return 0;
}
fatal error: linsched.h: No such file or directory #include "linsched.h"

jpollard 06-10-2016 02:15 PM

So?

What is the topic?

navodi 06-10-2016 02:37 PM

linSched stimulator
 
linSched

knudfl 06-10-2016 05:05 PM

Building LinSched :
Code:

$ git clone https://github.com/jontore/LinSched
$ cd LinSched/
$ make

.... No errors here, the executable 'linsched' was created.
But please read the file README.

The later version "linsched/2.6.35" is discussed here ...
http://stackoverflow.com/questions/1...nk-to-checkout
Ref. https://www.google.com/webhp?hl=all&...sched%2F2.6.35



-

navodi 06-10-2016 08:13 PM

linSched stimulator
 
Thank you! i am using this stimulator to show my thread core selection algorithm (thread scheduling on a core) is working properly , but i havn't an good idea whether i can use this stimulator , an idea of another stimulator will be useful

knudfl 06-29-2016 01:32 PM

News : A package, linsched_2632-1_i386.deb
https://drive.google.com/file/d/0B7S...ew?usp=sharing

Can also be installed to a 64bits OS ... and it works OK : $ linsched




-

navodi 07-04-2016 06:21 AM

i run the executable file you have provided , can you provide me the code and when i am running my own codes i am getting the above mentioned problem , how to install linsched files on to ubuntu

knudfl 07-04-2016 10:05 AM

Re #7.

Installing Linsched : Download the package, and ...
cd Downloads/ && sudo gdebi -i linsched_2632-1_i386.deb
The package provides /usr/local/bin/linsched

The code is 'git clone https://github.com/jontore/LinSched', see post #4.


Ubuntu ? There are lots of versions. Please specify :
Code:

uname -a
cat  /etc/issue


-


All times are GMT -5. The time now is 10:22 PM.