1. A method comprising: monitoring, in real-time, in-flight jobs in message queues for incoming jobs from organizations in a distributed environment having application servers in communication over a network; applying local sliding windows to the message queues to estimate wait time associated with each incoming job in a message queue, wherein a local sliding window includes a segment of time being monitored in each message queue for estimating the wait time; and allocating, in real-time, based on the estimated wait time, thread resources to one or more of the incoming jobs associated with the one or more of the organizations.