Understanding the foreground dispatch system