$$thr=threads->create(\&position,$text,$pattern); $$thr->join();
That looks like you're:
That kind of thing is going to slow down your program with all the thread overhead. You need to create a small set of worker threads, and distribute the work between them.
In reply to Re: Trouble implementing threads
by SuicideJunkie
in thread Trouble implementing threads
by saranrsm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |