if u are reading lines from a file, using multithread, make sure u get the entire line and delete it in the same step. if u use count of strings and then pick a bit of the line here and another bit of the line there and more bits after :D , there will be enough time for another thread to pick...