I have three tasks running within an AsyncTask class. I want to run these tasks in parallel, without making use of three AsyncTask classes. Is this possible? If yes, how could it be done?. Below you can find a code snippet of my AsyncTask class and its doInBackground method.
private class AsyncBenchmarking extends AsyncTask<Void, Void, Integer> {
    @Override
    protected void onPreExecute() {
        lockScreenOrientation();
        animateScreen();
        super.onPreExecute();
    }
    @Override
    protected Integer doInBackground(Void... params) {
        firstTaskPerformance = objPrimeNumber.generatePrimeNumbers();
        secondTaskPerformance = objLinpack.linpackBenchmark();
        thirdTaskPerformance = objSuperPi.calculatePi(100000);
        return;
    }
}
 
     
     
    