my @str_lengths = do { use threadsafe; map { length } @strs; };