Pre-fetching with threads