Probably 2 separate threads, one being collecting the necessary resources and the other being on the actual experiment.