clocks
play

Clocks Adam T. Sampson School of Computing, University of Kent - PowerPoint PPT Presentation

Clocks Adam T. Sampson School of Computing, University of Kent Neil C. C. Brown School of Computing, University of Kent Motivation My day job Big concurrent distributed simulations Lots of agents Discrete time steps Implemented


  1. Clocks Adam T. Sampson School of Computing, University of Kent Neil C. C. Brown School of Computing, University of Kent

  2. Motivation

  3. My day job ● Big concurrent distributed simulations ● Lots of agents ● Discrete time steps – Implemented using a barrier – Each step divided into several phases

  4. That's an awfully nice wheel ● Event-based simulation is very similar ● Actions occur at particular times ● Implement as priority queue of actions – Sorted by the time at which the action should occur

  5. Barrier ● Has: – Enrollment count – Set of blocked processes ● When count == size(set), schedule all in set

  6. Clock ● Has: – Enrollment count – Priority queue of blocked processes ● When count == size(queue), schedule all the processes that have the lowest time

  7. Agent Smith WHILE alive ... query environment ... think ... write changes back to environment WHILE now < next.time SYNC bar

  8. Agent Orange WHILE alive ... query environment ... think ... write changes back to environment SYNC clock, next.time ● This runs faster – because it doesn't have to wake up on timesteps where it's not doing anything (which is most of them)

  9. Some questions ● What should the semantics for ALT be? ● Is it worth having language bindings? – This can just be implemented as a process...

  10. Any questions? ● Clocks are implemented in CHP – go and play!

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend