Analysis of Multithreaded Microprocessors under Multiprogramming