Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
119 views
Assignment 2
Uploaded by
Nivedita Acharyya 2035
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Assignment 2 (1) For Later
Download
Save
Save Assignment 2 (1) For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
119 views
Assignment 2
Uploaded by
Nivedita Acharyya 2035
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Assignment 2 (1) For Later
Carousel Previous
Carousel Next
Save
Save Assignment 2 (1) For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 12
Search
Fullscreen
LAB MANUAL — REAL TIME SYTSEMS EXPERIMENT 1: INTRODUCTION TO CHEDDAR BITS,PILANI — KK BIRLA GOA CAMPUSTable of Contents Introduction to Cheddar... Starting the Simulator...... Building a new project: Running the Simulation: Experiment 1: An Example... Lab Assignment 1... Ql... Q2.... 10 a3... 10 04... 10 Qs coyIntroduction to Cheddar Starting the Simulator: Double click on the cheddar.exe from the ‘Cheddar-3.0-win32-bin’ folder. This will launch the application. Building a new project: 1. From the file icon in the menu bar, choose ‘new’ XML project. All newly created files have to be saved in the current path with an extension of .sc. 2. Adding a core: From the menu bar, Edit -> hardware -> Core. Bice Tame corer [tame [Scheduler [quantum [Preeraptne [automal Scheduler type Earliest Deadline First Protocol cw | [eoret Earliest Deadine First Protocol 0 Preemptive Quantum Preemptive type Preemptive > ‘Automaton name capacty Peco Pronty User defined scheduler fle name stort te ‘Speed LL cache system name ose cancel Delete Modify ‘Ada * Add the name of the core. For example, Core1, as shown in the figure. ‘+ Scheduler type: Add the type of scheduling algorithm * Preemptive type: Has 2 options:-preemptive and non-preemptive. To be chosen according to the requirement. * Add the core by selecting the add option. The core name along with the parameters will be reflected on the right hand side. * Modify the core parameters by selecting the core name and changing the parameter. * To delete the core by choosing delete.3. Adding the Processor: > From the menu bar, Edit -> Hardware -> Processor. v Add the name of the processor. Processor type: * Mono-core processor- Single core processor system. + Identical multicores- Multicore system with identical core parameters, that is, same architecture and same speed. * Uniform multicores- Same Architecture but different speeds. © Unrelated multicores- Different characteristics. Migration Type: ‘© No migration: The tasks will not be migrated from one processor to another. * Job level migration: The various instances of the task can be migrated across various processors. © Time unit migration: All instances of the task will be executed on the same processor. Add the core from the ‘cores table’. The Processor name along with the other parameters will be reflected on the right hand side. 4, Adding the address space: > From the menu bar, Edit -> software -> Address space. ‘eee snes g eS . eae S00 a sonata Sontng ret regen 1 rem cv v v > > Select the name for the address space. Processor name: Choose the processor. All the defined processors will appear in the drop down list Scheduler type: An address space is a piece of memory which contains the processor parameters such as tasks and resources. A scheduler type can be defined for the address spaces in case of hierarchical scheduling algorithms, otherwise choose No Scheduling Protocol. Preemptive type: opt for non-preemptive scheduling in the address space. Add the address space. 5. Adding a task: > From the menu bar, Edit -> software -> task ae ine on [rece tne [an on [ay ane orn ror Java reat se a ioe n zl tS ae z yi conn _ F sect Te ees Se Suc ener Soe cna, aaliicar =~ ol Zameen ote | n - and ee twetege vl = coe ee er aif SSS ‘Add the name of the task. Task type: > vv v * Periodic task: The task will occur periodically after the time unit defined in the period field. © Aperiodic task: Tasks that will occur only once with soft deadline. * Sporadic task: Tasks that will occur only once with a hard deadline. Processor name: Drop down list contains all the processors defined. Choose the appropriate processor for the task Capacity: Worst case Execution time of the task Deadline: Absolute deadline. Refers to the completion time for the task. Start time: The time offset for the task, that is, the time at which the task will be ready for executionPriority: To define the priority of the task. For user defined priority, use POSIX scheduling (Highest priority first scheduling, Fixed priority). There are a total of 255 priority levels available. By default, 1- lowest priority and 255- highest priority. When 2 or more tasks have the same priority, the scheduler will execute the task depending upon the scheduling policy. In case of other scheduling algorithms, priority is determined by the scheduler depending upon the task parameters such period, deadline, ete. Period: The periodicity of the task, thatiis, the time after which the task will reoccur. (note: Deadline must be lesser than the periodicity). Do not specify periodicity for aperiodic and sporadic task. v Running the Simulation: > Torun the simulation, click on > The following dialog box will appear, schedule from 0 to hyper-period. 9 seeing Srl — a x | Sahat Fam To 1 Drew Fam 7 TTR? a ok Cancel This will create a xml file (eg: file1.xml) which will be present in the same path as .sc file To clear the workspace, clickon 8, v v v To set different colors to the task, From the menu bar choose, Tools->Scheduling->Scheduling options -> Display scheduling->Several colors for time tines. > To check the schedulability feasibility tests, clickonExperiment 1: An Example Consider the following task set. Scheduling algorithm: EDF 71 =(1,4) T2 = (2,5) TB = (1,20) TA = (2,20) 1. Adding the core: ico —o x Tame wre ae aE ‘Scheduler type Earliest Deadline First Protocol ih quorum ° Preemptive type Preemptive ~ Automaton name ‘Capacity 0 ered ° Prony ° User defined shader fe name stor time ° ‘Speed 0 LU cache system name 2. Adding the processor Tae ra ane] eton [roca Tee [ara Tee neo re 8 sonar Te zl Mignon Tipe io Mipaton Tne *3. Adding the address space: 4, Adding the tasks:5. Run the simulation. 18) Scheduling Simulation - a x ‘Schedule From 0 To : 2 Draw From : 0 Draw Upto = 20 Ok Cancel Results obtained: a 5 7 7 '20 Rsk nantes! “Penodl a; Capdetiye 1; Deadine= 4; Start time= 0; Prionty= 1: Cp YasknametT® Pétod= & Cdpacii= 3, Deadine= 5; Start time= 0; Pririty= 1; Cpusproct ‘ask name=T3 og= 20: Capatij= 1! Deadtine= 20; Start tme= 0; Prionty= 1; Cpu=proct ask name=T4 Period 30; Capacity=2! Deadine= 20; Start time= 0; Prioty= 1; Cpu=proct ‘o S 70 i '20 Core Uni TProcessor name=core Nproct Protocol = EARLIES|_UEAULINE_FIRS|_PRUIUCOL ; PREEMPIIVE ee a sine mss he cored ches teas Sts shea yo comp ergo he feast wen According to EDF, the tasks are given the priorities as follows: T1 > T2 > T3 = T4. Though T3 and T4 have the same priority, T3 will be scheduled first as it follows a scheduled FIFO policy. At time unit 7, T4 (deadline = 20) will start execution, but at t = 8, third instance of T1 will arrive which has a deadline of 12, hence it preempts T4. T4 will continue its execution at t= 9 Similarly, at t = 16, T1 will preempt T2 as it has lower deadline (hence higher priority) in comparison to T2.Lab Assignment 1 For the following Task sets and scheduling algorithms — submit the screen shoot of the schedule generated by Cheddar — with proper interpretations and conclusions regarding the schedule generated. If the task set is not schedulable — suggest an alternate method of scheduling Qi For the task graph show below show that a priority driven schedule with non-preemption will produce a better schedule than priority driven schedule with pre-emption ° Ji-3 p-l B-2 ° ° Jb-2 Je-4 o D y-4 je-1 ©: Fe) All tasks are aperiodic with a deadline of 12. All tasks except for J5 release at 0. J5 releases at 4. The priority of jobs is such that J1 has a higher priority when compared to J2 has a higher priority when compared to. 4J3 and so on. The scheduling is done on a processor which has dual identical cores with jobs migratable at any point in time.Qa ‘Show that the following tasks table is schedulable using EDF on a mono-core processor, if pre-emption is allowed but is not schedulable if pre-emption is not allowed. All tasks are aperiodic. r 0 2 4 e 3 6 4 d 10 14 12 Q3 ‘Show that the following tasks table is schedulable using LLF but not using EDF on a dual-core processor. All tasks are aperiodic. ro 0 0 eu 1 5 da 2 5 Q4 Show that the following tasks table causes indeterminism due to the execution time — when scheduled using EDF. All tasks are periodic J O 10 2-6 J4 0 20 10Qs Show that the following tasks are not schedulable using either ED{/LLF on a tri-core processor. All tasks are periodic and preemptable. Migration is not possible between a Job. 6 0 0 60 o oO
You might also like
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
From Everand
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
Mark Manson
4/5 (6129)
Principles: Life and Work
From Everand
Principles: Life and Work
Ray Dalio
4/5 (627)
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
From Everand
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
Brene Brown
4/5 (1148)
Never Split the Difference: Negotiating As If Your Life Depended On It
From Everand
Never Split the Difference: Negotiating As If Your Life Depended On It
Chris Voss
4.5/5 (933)
The Glass Castle: A Memoir
From Everand
The Glass Castle: A Memoir
Jeannette Walls
4/5 (8215)
Grit: The Power of Passion and Perseverance
From Everand
Grit: The Power of Passion and Perseverance
Angela Duckworth
4/5 (631)
Sing, Unburied, Sing: A Novel
From Everand
Sing, Unburied, Sing: A Novel
Jesmyn Ward
4/5 (1253)
The Perks of Being a Wallflower
From Everand
The Perks of Being a Wallflower
Stephen Chbosky
4/5 (8365)
Shoe Dog: A Memoir by the Creator of Nike
From Everand
Shoe Dog: A Memoir by the Creator of Nike
Phil Knight
4.5/5 (860)
Her Body and Other Parties: Stories
From Everand
Her Body and Other Parties: Stories
Carmen Maria Machado
4/5 (877)
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
From Everand
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
Ben Horowitz
4.5/5 (361)
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
From Everand
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
Margot Lee Shetterly
4/5 (954)
Steve Jobs
From Everand
Steve Jobs
Walter Isaacson
4/5 (2923)
The Emperor of All Maladies: A Biography of Cancer
From Everand
The Emperor of All Maladies: A Biography of Cancer
Siddhartha Mukherjee
4.5/5 (277)
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
From Everand
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
Ashlee Vance
4.5/5 (484)
A Man Called Ove: A Novel
From Everand
A Man Called Ove: A Novel
Fredrik Backman
4.5/5 (4972)
Angela's Ashes: A Memoir
From Everand
Angela's Ashes: A Memoir
Frank McCourt
4.5/5 (444)
Brooklyn: A Novel
From Everand
Brooklyn: A Novel
Colm Toibin
3.5/5 (2061)
The Art of Racing in the Rain: A Novel
From Everand
The Art of Racing in the Rain: A Novel
Garth Stein
4/5 (4281)
The Yellow House: A Memoir (2019 National Book Award Winner)
From Everand
The Yellow House: A Memoir (2019 National Book Award Winner)
Sarah M. Broom
4/5 (100)
The Little Book of Hygge: Danish Secrets to Happy Living
From Everand
The Little Book of Hygge: Danish Secrets to Happy Living
Meik Wiking
3.5/5 (447)
Yes Please
From Everand
Yes Please
Amy Poehler
4/5 (1987)
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
From Everand
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
Gilbert King
4.5/5 (278)
The World Is Flat 3.0: A Brief History of the Twenty-first Century
From Everand
The World Is Flat 3.0: A Brief History of the Twenty-first Century
Thomas L. Friedman
3.5/5 (2283)
Bad Feminist: Essays
From Everand
Bad Feminist: Essays
Roxane Gay
4/5 (1068)
The Outsider: A Novel
From Everand
The Outsider: A Novel
Stephen King
4/5 (1993)
The Woman in Cabin 10
From Everand
The Woman in Cabin 10
Ruth Ware
3.5/5 (2641)
A Tree Grows in Brooklyn
From Everand
A Tree Grows in Brooklyn
Betty Smith
4.5/5 (1936)
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
From Everand
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
Viet Thanh Nguyen
4.5/5 (125)
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
From Everand
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
Dave Eggers
3.5/5 (692)
Team of Rivals: The Political Genius of Abraham Lincoln
From Everand
Team of Rivals: The Political Genius of Abraham Lincoln
Doris Kearns Goodwin
4.5/5 (1912)
Wolf Hall: A Novel
From Everand
Wolf Hall: A Novel
Hilary Mantel
4/5 (4074)
On Fire: The (Burning) Case for a Green New Deal
From Everand
On Fire: The (Burning) Case for a Green New Deal
Naomi Klein
4/5 (75)
Fear: Trump in the White House
From Everand
Fear: Trump in the White House
Bob Woodward
3.5/5 (830)
Rise of ISIS: A Threat We Can't Ignore
From Everand
Rise of ISIS: A Threat We Can't Ignore
Jay Sekulow
3.5/5 (143)
Manhattan Beach: A Novel
From Everand
Manhattan Beach: A Novel
Jennifer Egan
3.5/5 (901)
John Adams
From Everand
John Adams
David McCullough
4.5/5 (2544)
The Light Between Oceans: A Novel
From Everand
The Light Between Oceans: A Novel
M L Stedman
4.5/5 (790)
CSE 420 Fall 2018 Module 1 Sample Questi
PDF
No ratings yet
CSE 420 Fall 2018 Module 1 Sample Questi
18 pages
Lec 1
PDF
No ratings yet
Lec 1
17 pages
MMC24_5-10_A101_GB_S
PDF
No ratings yet
MMC24_5-10_A101_GB_S
65 pages
Nmos Inverter Numerical
PDF
No ratings yet
Nmos Inverter Numerical
4 pages
Assignment 2 Vlsi
PDF
No ratings yet
Assignment 2 Vlsi
21 pages
Fulltext
PDF
No ratings yet
Fulltext
29 pages
NEA Mac Protocols Presentation
PDF
No ratings yet
NEA Mac Protocols Presentation
26 pages
Rts 3
PDF
No ratings yet
Rts 3
64 pages
Amba
PDF
No ratings yet
Amba
7 pages
WMS 1
PDF
No ratings yet
WMS 1
10 pages
Online Placement Rectangle
PDF
No ratings yet
Online Placement Rectangle
10 pages
Rts 4
PDF
No ratings yet
Rts 4
91 pages
ADSP Compre
PDF
No ratings yet
ADSP Compre
2 pages
Nervatla Artish 2005
PDF
No ratings yet
Nervatla Artish 2005
61 pages
210 - EC8392, EC6302 Digital Electronics - Question Bank 1
PDF
No ratings yet
210 - EC8392, EC6302 Digital Electronics - Question Bank 1
19 pages
18ec0443-Analog Electronic Circuits
PDF
No ratings yet
18ec0443-Analog Electronic Circuits
7 pages
sensorKDD 2010
PDF
No ratings yet
sensorKDD 2010
9 pages
Sys LW-01EN ComputingBasises
PDF
No ratings yet
Sys LW-01EN ComputingBasises
12 pages
210 - EC8392, EC6302 Digital Electronics - Question Bank
PDF
No ratings yet
210 - EC8392, EC6302 Digital Electronics - Question Bank
17 pages
Centum AGM Notice
PDF
No ratings yet
Centum AGM Notice
11 pages
PDF 2
PDF
No ratings yet
PDF 2
13 pages
PDF 1
PDF
No ratings yet
PDF 1
17 pages
Low Cost FPGA Development System For Tea
PDF
No ratings yet
Low Cost FPGA Development System For Tea
5 pages
The Unwinding: An Inner History of the New America
From Everand
The Unwinding: An Inner History of the New America
George Packer
4/5 (45)
Little Women
From Everand
Little Women
Louisa May Alcott
4/5 (105)
The Constant Gardener: A Novel
From Everand
The Constant Gardener: A Novel
John le Carré
3.5/5 (109)
Related titles
Click to expand Related Titles
Carousel Previous
Carousel Next
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
From Everand
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
Principles: Life and Work
From Everand
Principles: Life and Work
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
From Everand
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
Never Split the Difference: Negotiating As If Your Life Depended On It
From Everand
Never Split the Difference: Negotiating As If Your Life Depended On It
The Glass Castle: A Memoir
From Everand
The Glass Castle: A Memoir
Grit: The Power of Passion and Perseverance
From Everand
Grit: The Power of Passion and Perseverance
Sing, Unburied, Sing: A Novel
From Everand
Sing, Unburied, Sing: A Novel
The Perks of Being a Wallflower
From Everand
The Perks of Being a Wallflower
Shoe Dog: A Memoir by the Creator of Nike
From Everand
Shoe Dog: A Memoir by the Creator of Nike
Her Body and Other Parties: Stories
From Everand
Her Body and Other Parties: Stories
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
From Everand
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
From Everand
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
Steve Jobs
From Everand
Steve Jobs
The Emperor of All Maladies: A Biography of Cancer
From Everand
The Emperor of All Maladies: A Biography of Cancer
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
From Everand
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
A Man Called Ove: A Novel
From Everand
A Man Called Ove: A Novel
Angela's Ashes: A Memoir
From Everand
Angela's Ashes: A Memoir
Brooklyn: A Novel
From Everand
Brooklyn: A Novel
The Art of Racing in the Rain: A Novel
From Everand
The Art of Racing in the Rain: A Novel
The Yellow House: A Memoir (2019 National Book Award Winner)
From Everand
The Yellow House: A Memoir (2019 National Book Award Winner)
The Little Book of Hygge: Danish Secrets to Happy Living
From Everand
The Little Book of Hygge: Danish Secrets to Happy Living
Yes Please
From Everand
Yes Please
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
From Everand
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
The World Is Flat 3.0: A Brief History of the Twenty-first Century
From Everand
The World Is Flat 3.0: A Brief History of the Twenty-first Century
Bad Feminist: Essays
From Everand
Bad Feminist: Essays
The Outsider: A Novel
From Everand
The Outsider: A Novel
The Woman in Cabin 10
From Everand
The Woman in Cabin 10
A Tree Grows in Brooklyn
From Everand
A Tree Grows in Brooklyn
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
From Everand
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
From Everand
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
Team of Rivals: The Political Genius of Abraham Lincoln
From Everand
Team of Rivals: The Political Genius of Abraham Lincoln
Wolf Hall: A Novel
From Everand
Wolf Hall: A Novel
On Fire: The (Burning) Case for a Green New Deal
From Everand
On Fire: The (Burning) Case for a Green New Deal
Fear: Trump in the White House
From Everand
Fear: Trump in the White House
Rise of ISIS: A Threat We Can't Ignore
From Everand
Rise of ISIS: A Threat We Can't Ignore
Manhattan Beach: A Novel
From Everand
Manhattan Beach: A Novel
John Adams
From Everand
John Adams
The Light Between Oceans: A Novel
From Everand
The Light Between Oceans: A Novel
CSE 420 Fall 2018 Module 1 Sample Questi
PDF
CSE 420 Fall 2018 Module 1 Sample Questi
Lec 1
PDF
Lec 1
MMC24_5-10_A101_GB_S
PDF
MMC24_5-10_A101_GB_S
Nmos Inverter Numerical
PDF
Nmos Inverter Numerical
Assignment 2 Vlsi
PDF
Assignment 2 Vlsi
Fulltext
PDF
Fulltext
NEA Mac Protocols Presentation
PDF
NEA Mac Protocols Presentation
Rts 3
PDF
Rts 3
Amba
PDF
Amba
WMS 1
PDF
WMS 1
Online Placement Rectangle
PDF
Online Placement Rectangle
Rts 4
PDF
Rts 4
ADSP Compre
PDF
ADSP Compre
Nervatla Artish 2005
PDF
Nervatla Artish 2005
210 - EC8392, EC6302 Digital Electronics - Question Bank 1
PDF
210 - EC8392, EC6302 Digital Electronics - Question Bank 1
18ec0443-Analog Electronic Circuits
PDF
18ec0443-Analog Electronic Circuits
sensorKDD 2010
PDF
sensorKDD 2010
Sys LW-01EN ComputingBasises
PDF
Sys LW-01EN ComputingBasises
210 - EC8392, EC6302 Digital Electronics - Question Bank
PDF
210 - EC8392, EC6302 Digital Electronics - Question Bank
Centum AGM Notice
PDF
Centum AGM Notice
PDF 2
PDF
PDF 2
PDF 1
PDF
PDF 1
Low Cost FPGA Development System For Tea
PDF
Low Cost FPGA Development System For Tea
The Unwinding: An Inner History of the New America
From Everand
The Unwinding: An Inner History of the New America
Little Women
From Everand
Little Women
The Constant Gardener: A Novel
From Everand
The Constant Gardener: A Novel