Tumbleweed: Killing the idlers

March 24, 2013 | Tumbleweed 

The Mission

How to do it

  1. Block all web worker threads while doing the massacre. At the same time the web workers must not block each other under all circumstances. Check
  2. Do not use gettimeofday() to measure the last activity since this is fairly difficult to do right in a highly loaded event based system. Instead, use counters and do the math with the event wakeup timer. Check