Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ebff9c4b98eb8bd18db097182d69f03c2d199ecb
Ticket: 1464890fffffffffffffffffffffffffffffffff
after command hangs when system time changes
User & Date: jflarvoire on 2007-03-15 16:36:30
Changes

  1. icomment:
    Logged In: YES 
    user_id=617204
    Originator: YES
    
    What about having a surveyor thread, querying the system time every 500ms,
    and initiating a corrective action if it detects any abnormal change?
    - Any change that goes backwards in time is proof of a system clock update.
    - Any change going forward more than a given threshold is a likely update too.
      (May also be a delay due to high system load. Would have to make the surveyor
       thread a high priority thread to make it resilient to such overloads)
    
    Note that this is how we eventually fixed our problem.
    Instead of a thread, we used an outside program dedicated for that.
    Obviously an internal thread would be much more efficient.
    
    
  2. login: "jflarvoire"
  3. mimetype: "text/plain"
  4. username: "jflarvoire"