Export excel in background

Hello,
I need ton know if ti is possible to execute excel export in background process mode or on multithreading
because if we want export excel with more than 1000 records that takes times and freeze application until process finished