Simulating multi-threading work inside web server