While not an answer to multithreading, you might look into some other performance improvements as well. I don't know the format of your source file, but there might be some things to look for:
In reply to Re: Multithreading a large file split to multiple files
by cavac
in thread Multithreading a large file split to multiple files
by 10isitch
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |