Make display matrix be shared between threads