Networks-on-chips connect multiple cores together and have been widely used in electronic devices. This paper focuses on the mapping problem of networks-on-chips We propose an algorithm MART to improve the real-time performance of applications and minimize the communication cost. Experimental results show that RTMAP can significantly improve the acceptance rate of real-time applications which only introduces small communication cost overhead.