Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7708851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:43:06+00:00 2026-06-01T00:43:06+00:00

How to use linsched (Linux scheduler simulator)? In need of an example on how

  • 0

How to use linsched (Linux scheduler simulator)? In need of an example on how to run and check the output. Have been searching for tutorials and also went through the README file. Din’t understand how to run and checkout the outputs. Tried running basic_tests script (as ./basic_tests trivial_bal UNIPROCESSOR) but, it din’t show up anything, .. Thanks in advance..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T00:43:07+00:00Added an answer on June 1, 2026 at 12:43 am

    You can’t be the only one having this problem! It was not trivial to get a small example running.

    For every test you want output (everybody wants output, except for the person who wrote the tests obviously), add linsched_print_task_stats(); at the end of the test and recompile.

    If you want to add an own test, for example listing 4 in http://www.ibm.com/developerworks/linux/library/l-linux-scheduler-simulator/ do like this:

    1. Copy the code in listing 4 to the bottom of basic_test.c
    2. initialize the variable count to zero or some other good value.
    3. Change topo_db to linsched_topo_db
    4. change the function name to test_new_test
    5. Add TEST(new_test), to struct test tests[], but NOT at the bottom because the last one is used as a sentinel when printing.
    6. Add the function as forward declaration at the top of the file void test_new_test(int argc, char **argv);
    7. Compile and run: /basic_tests list

      trivial_bal
      basic_bal1
      basic_bal2
      bal1
      new_test
    8. Try your new command.
      ./basic_tests new_test uniprocessor
    Task id = 3 (1), exec_time = 7116000000, run_delay = 52092000000,  
    Task id = 4 (2), exec_time = 7116000000, run_delay = 52093000000,  
    Task id = 5 (3), exec_time = 7116000000, run_delay = 52094000000,  
    Task id = 6 (4), exec_time = 7115000000, run_delay = 52095000000,  
    Task id = 7 (5), exec_time = 7115000000, run_delay = 52091000000,  
    Task id = 8 (6), exec_time = 3430000000, run_delay = 25771000000,  
    Task id = 9 (7), exec_time = 3430000000, run_delay = 25772000000,  
    Task id = 10 (8), exec_time = 3430000000, run_delay = 25773000000,   
    Task id = 11 (9), exec_time = 3430000000, run_delay = 25774000000,  
    Task id = 12 (10), exec_time = 3430000000, run_delay = 25775000000,  
    Task id = 13 (11), exec_time = 7272000000, run_delay = 52725000000,  
    Total exec_time = 60000000000
    

    The link I mentioned above has a very good explanation on how to interpret the numbers.
    Good luck with the scheduling!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

use case example I have a servlet that is receiving login requests. If a
I use to work with Visual Studio + C#, and have been using svn
use Rack::Static, :urls => ['/stylesheets', '/images'], :root => 'public' run proc { |env| [200,
use pthread_create to create limited number of threads running concurrently Successfully compile and run
Use Elixir and have two entities -- Voter and Candidate -- with many to
use javascript or other method ? have any recommendation?
Use case example: Client A comes to request sales information, enters their zip code
Use Eclipse Classic with ADT plugin. Tried to make project from existing example of
Use case: You have 2-3 files displayed in your MacVim window(s). You press ctrl+Q
Use scenario is pretty simple: I have a desktop only application that could be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.