Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-10-2016, 02:10 PM
|
#1
|
LQ Newbie
Registered: Jun 2016
Posts: 11
Rep: 
|
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"
|
|
|
06-10-2016, 03:15 PM
|
#2
|
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,908
|
So?
What is the topic?
|
|
|
06-10-2016, 03:37 PM
|
#3
|
LQ Newbie
Registered: Jun 2016
Posts: 11
Original Poster
Rep: 
|
linSched stimulator
linSched
|
|
|
06-10-2016, 06:05 PM
|
#4
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Building LinSched :
.... 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
-
Last edited by knudfl; 06-10-2016 at 06:14 PM.
|
|
1 members found this post helpful.
|
06-10-2016, 09:13 PM
|
#5
|
LQ Newbie
Registered: Jun 2016
Posts: 11
Original Poster
Rep: 
|
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
|
|
|
06-29-2016, 02:32 PM
|
#6
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
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
-
|
|
1 members found this post helpful.
|
07-04-2016, 07:21 AM
|
#7
|
LQ Newbie
Registered: Jun 2016
Posts: 11
Original Poster
Rep: 
|
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
|
|
|
07-04-2016, 11:05 AM
|
#8
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
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
-
Last edited by knudfl; 07-04-2016 at 03:50 PM.
|
|
|
All times are GMT -5. The time now is 02:23 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|