robot multitasking

So i have a robot with tree ultrasonic sensors in a loop one at the time checking the distance can i make it
check at the same time so it check more times.

Basically i want my arduino to check the distance more times then it is not

#include <AFMotor.h>

#include <AFMotor.h> //import your motor shield library
#define trigPin 50 // define the pins of your sensor
#define echoPin 52 
#define trigPin1 40 // define the pins of your sensor
#define echoPin1 42 
#define trigPin2 30 // define the pins of your sensor
#define echoPin2 24 

AF_DCMotor motor1(1,MOTOR12_64KHZ); // set up motors.
AF_DCMotor motor2(2,MOTOR12_64KHZ);
 
void setup() {
  Serial.begin(9600); // begin serial communitication  
  Serial.println("Motor test!");
  pinMode(trigPin, OUTPUT);// set the trig pin to output (Send sound waves)
  pinMode(echoPin, INPUT);// set the echo pin to input (recieve sound waves)
  pinMode(trigPin1, OUTPUT);// set the trig pin to output (Send sound waves)
  pinMode(echoPin1, INPUT);// set the echo pin to input (recieve sound waves)
  pinMode(trigPin2, OUTPUT);// set the trig pin to output (Send sound waves)
  pinMode(echoPin2, INPUT);// set the echo pin to input (recieve sound waves)
  
motor1.setSpeed(150); //set the speed of the motors, between 0-255
motor2.setSpeed(150);  
delay (5000);
 
}

void loop() {

   long duration, distance, duration1, distance1, duration2, distance2; // start the scan
  
  digitalWrite(trigPin, LOW);  
  delayMicroseconds(2); // delays are required for a succesful sensor operation.
  digitalWrite(trigPin, HIGH);

  delayMicroseconds(10); //this delay is required as well!
  digitalWrite(trigPin, LOW);
  duration = pulseIn(echoPin, HIGH);
  distance = (duration/2) / 29.1;// convert the distance to centimeters.
  if (distance < 20)/*if there's an obstacle 25 centimers, ahead, do the following: */ {   
   Serial.println ("Close Obstacle detected!" );
Serial.println ("Obstacle Details:");
Serial.print ("Distance From Robot is " );
Serial.print ( duration);
Serial.print (" valoare ");
Serial.print ( distance);
Serial.print ( " CM!");// print out the distance in centimeters.

Serial.println (" The obstacle is declared a threat due to close distance. ");
Serial.println (" Turning !");
motor1.setSpeed(50); //set the speed of the motors, between 0-255
motor2.setSpeed(50);
delay (500)
; motor1.setSpeed(150); //set the speed of the motors, between 0-255
; motor2.setSpeed(150);
;    motor1.run(BACKWARD);  // Turn as long as there's an obstacle ahead.
 ;   motor2.run(BACKWARD);
 delay(1000);

 motor1.run(BACKWARD);
     motor2.run(FORWARD); //if there's no obstacle ahead, Go Forward! 
      delay(700);
}
  else {
   Serial.println ("No obstacle detected. going forward");
   delay (15);
 
    motor1.run(FORWARD);
     motor2.run(FORWARD); //if there's no obstacle ahead, Go Forward!   

  }  
 
  digitalWrite(trigPin1, LOW);  
  delayMicroseconds(2); // delays are required for a succesful sensor operation.
  digitalWrite(trigPin1, HIGH);

  delayMicroseconds(10); //this delay is required as well!
  digitalWrite(trigPin1, LOW);
  duration1 = pulseIn(echoPin1, HIGH);
  distance1 = (duration1/2) / 29.1;// convert the distance to centimeters.
  if (distance1 < 35)/*if there's an obstacle 25 centimers, ahead, do the following: */ {   
   Serial.println ("Close Obstacle detected!" );
Serial.println ("Obstacle Details:");
Serial.print ("Distance111 From Robot is " );
Serial.print ( duration1);
Serial.print (" valoare1 ");
Serial.print ( distance1);
Serial.print ( " CM!");// print out the distance in centimeters.

Serial.println (" The obstacle is declared a threat due to close distance. ");
Serial.println (" Turning !");
   
    motor1.run(BACKWARD);  // Turn as long as there's an obstacle ahead.
    motor2.run(FORWARD);
    delay (100);
 
}
  else {
   Serial.println ("No obstacle detected. going forward");
    motor1.run(FORWARD);  
    motor2.run(FORWARD); //if there's no obstacle ahead, Go Forward! 
    
 }  

  digitalWrite(trigPin2, LOW);  
  delayMicroseconds(2); // delays are required for a succesful sensor operation.
  digitalWrite(trigPin2, HIGH);

  delayMicroseconds(10); //this delay is required as well!
  digitalWrite(trigPin2, LOW);
  duration2 = pulseIn(echoPin2, HIGH);
  distance2 = (duration2/2) / 29.1;// convert the distance to centimeters.
  if (distance2 < 35)/*if there's an obstacle 25 centimers, ahead, do the following: */ {   
   Serial.println ("Close Obstacle detected!" );
Serial.println ("Obstacle Details:");
Serial.print ("Distance2222 From Robot is " );
Serial.print ( duration2);
Serial.print (" valoare2 ");
Serial.print ( distance2);
Serial.print ( " CM!");// print out the distance in centimeters.

Serial.println (" The obstacle is declared a threat due to close distance. ");
Serial.println (" Turning !");
   
    motor1.run(FORWARD);  // Turn as long as there's an obstacle ahead.
    motor2.run (BACKWARD);
   delay (100);
}
  else {
   Serial.println ("No obstacle detected. going forward");
   delay (15);
     motor1.run(FORWARD); 
     motor2.run(FORWARD); //if there's no obstacle ahead, Go Forward! 
  }  








  
  
  

  
  
  
 
}
delay (500)
; motor1.setSpeed(150); //set the speed of the motors, between 0-255
; motor2.setSpeed(150);
;    motor1.run(BACKWARD);  // Turn as long as there's an obstacle ahead.
 ;   motor2.run(BACKWARD);

; Where ; do ; semi-colons ; go ; ?

NOT wherever the heck you feel like putting them!

It amazes me when someone posts code riddled with delay()s and says "it's too slow".

Do YOU walk down the street with your eyes closed most of the time? That is what the delay()s are doing to your robot. You should have 0 calls to delay().

Use the NewPing library to read your sensors, instead of blocking with pulseIn() (and delay()).

Use Tools + Auto Format to properly indent that mess of code. It looks like it was typed by a drunken monkey. Sober the monkey up before posting code again.

The arduino can handle the speed, however the sound takes very long to bounce, and yes you can speed it a little by triggering them together, however the sound will bounce all over the place, so you will not able to detect the direction. even after triggering you will need to keep silent for the maxtime needed. You could use 2 sensors with interupt, so you can measure the time needed for the puls.