1 / 11

Elevator Scheduling

Elevator Scheduling. Recitation – 10/ 24/14 Shuyang Yao Slides by Prof. Landon Cox, Vamsi Thummala and Nisarg Raval. Metrics for Elevator Scheduling. Service Time Time between pushing the button and exit the elevator Can be approximated by wait time Efficiency

Download Presentation

Elevator Scheduling

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Elevator Scheduling Recitation – 10/24/14 Shuyang Yao Slides by Prof. Landon Cox, VamsiThummala and NisargRaval

  2. Metrics for Elevator Scheduling • Service Time • Time between pushing the button and exit the elevator • Can be approximated by wait time • Efficiency • Amount of total work done (Energy) • Number of floors visited by the elevator • Fairness • Variation in the service time

  3. Metrics for Elevator Scheduling • Service Time - Minimize • Time between pushing the button and exit the elevator • Can be approximated by wait time • Efficiency - Minimize • Amount of total work done (Energy) • Number of floors visited by the elevator • Fairness - Maximize • Variation in the service time

  4. FCFS – First Come First Served • Service in the order of request • Simple • No Starvation • How good it is?

  5. Example

  6. SSTF – Shortest Seek Time First

  7. SCAN

  8. Circular SCAN (C – SCAN)

  9. Elevator Scheduling

  10. Disk Scheduling • Similar to Elevator Scheduling • Queue of jobs waiting to access disk • Read jobs • Write jobs • Queue Entry • Pointer to memory location to read/write from/to • Sector number to access • Pointer to the next job

  11. Using JStack to debug elevator • jstackprints Java stack traces of Java threads for a given Java process or core file or a remote debug server. • It can help you find deadlock!

More Related