Time context switching in various languages/runtimes