Multithreaded display code