Tracing a session timeout

A kiosk session enters Active at time t=0 st=0\ \text{s}. On every entry to Active, a relative time event after(18 s) is scheduled for 18 seconds later. Exiting Active cancels that pending occurrence. The logging behaviours do not change this timing.


The diagram's refresh loop is an external self-transition; ping is an internal response. Events arrive and are processed immediately in this order: ping at 4 s, refresh at 6 s, ping at 12 s, refresh at 19 s, and ping at 27 s. Transition processing takes negligible time, and no further events arrive.


At what time does the session enter Expired? Answer in seconds measured from t=0t=0, to the nearest whole second.


An Active session has an internal ping response, an external refresh self-transition, and a timed transition to Expired.


Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More State Diagrams Questions: