1 / 20

A Relaxed Synchronization Primitive for Macroprogramming Systems

Timothy W. Hnat and Kamin Whitehouse hnat@cs.virginia.edu, WHITEHOUSE@cs.virginia.edu . A Relaxed Synchronization Primitive for Macroprogramming Systems. Presented by: S. M. Shahriar Nirjon. Motivation. Synchronization Problems. State of the Art.

ulric
Download Presentation

A Relaxed Synchronization Primitive for Macroprogramming Systems

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. Timothy W.Hnat and Kamin Whitehouse hnat@cs.virginia.edu, WHITEHOUSE@cs.virginia.edu A Relaxed Synchronization Primitive forMacroprogramming Systems Presented by: S. M. ShahriarNirjon

  2. Motivation

  3. Synchronization Problems

  4. State of the Art • Node-level programming techniques (TinyOS) • Have little to no synchronization • Benefits timeliness • Timeliness – how quickly the system runs • Sacrifices correctness • Correctness– how accurate the system is • A fundamental trade-off between timeliness and correctness.

  5. Macroprogramming Microcode Microcode Microcode Microcode Microcode Microcode Macroprogram

  6. Node-level programming Microcode Microcode Microcode Microcode Microcode Microcode

  7. Outline • Synchronization • Exit Conditions • Convergence • Evaluation • Conclusion

  8. Barrier Synchronization 1 2 Node 3 4 5 Unreliable and high latency communication Changes execution timing

  9. Relaxed Synchronization 1 2 Node 3 4 5 Control over application concurrency

  10. Relaxed Synchronization • Allows the programmer to control the amount of parallelism • Tradeoff between timeliness and accuracy • Timeliness – how quickly the system runs • Accuracy – how close the measurements are to the real world

  11. Exit Conditions • Nodes • Radius • Deadline

  12. Brute Force Search • Enumerate all combinations of Nodes, Radius, and Deadline • Typically a very large search space • Brute force search • Guaranteed to discover the optimal solution given enough time • Extremely slow to run

  13. Hill Climbing 20 Error 0 0 Number of Nodes 100

  14. Experimental Setup • Object Tracking Application • Simulation every(1) magVals= magSensors.sense() RB(NODES,DEADLINE,RADIUS,fitness) active = find(sum(neighborMag>500,2)>3) maxNeighbor= max(neighborMag, 2) leaders = find(maxNeighbor(active)==magVal(active)) pos = weightedAverage(neighborMag) if leaders focusCamera(pos) end end

  15. Experimental Setup • Object Tracking Application • Simulation • Five Scenarios • Single target • Two targets • Fast-moving target • High-density deployment • False-positive errors

  16. Results – Distance Error

  17. Results – Parameter Variations

  18. Results – 3d Surface

  19. Conclusion • Macroprogramming abstractions typically have an expectation of sequential-like semantics • Relaxed Barriers provide a tunable version for WENs • Relaxed Barriers allow • Control over Timeliness and Accuracy • Provided an algorithm to tune these parameters for application scenarios

  20. Thank You

More Related