i'm using pthreads to create a background thread to load and do some tasks in background, but it lags the application a little bit as it's work is intense sometimes.
Is there any way i can set a lower priority or a different scheduling (or combination of both) so the main thread has more CPU time to run?