in reply to Re: Challenge: Perl 5: lazy sameFringe()?
in thread Challenge: Perl 5: lazy sameFringe()?
# create a subthread for each tree executing the above recursiveFringe # in such a way that the output from print above can be read in # while(<...>) in the main thread. # once a difference occurs return FALSE and terminate threads
That looks more like a fork-based approach than a thread based.
See mine for a recursion and threads approach.
I'd love to see a Coro solution here.
|
|---|