Getting Data In Yii From Two Tables Parallely


I have two models X and Y. In X model there is function xx() and in Y model there is function yy().

Now in controller

public function actionWork(){

  $a = new X;

  $b = new Y;

  $result1 = $a->xx();

  $result2 = $b->yy();


Now this code will process the action in sequential order.

But if I want to process these code in parallel, how will I be able to do that?



help yourself

Thanks for the reply… Surely it will help me…