How can i do something like multi threathing in arduino?

i also try using the library TimerOne but it doesn't seem to work,

It certainly toggles itPopUp every 150ms. I don't see how this can work in conjunction with a conditional statement with a 500 ms delay.

if(itPopUp){   //With this variable i want to control when it is show, this code is inside loop()
          Serial.print("Reproducido con exito la nota: "); //se escribe 'éxito' pero la consola no acepta tildes, que            se arrepienta :P
          TempInt = StackNote.pop();
          Serial.println(TempInt);
          tone(9,Notas[((int)TempInt)],500);
          delay(500);
        }