On Fri, Feb 22, 2013 at 5:09 AM, Andrew Robinson
<andr...@r3dsolutions.com> wrote:
> On 02/22/2013 07:21 PM, Ian Kelly wrote:
>> I am curious about how he deals with infinite loops in the generated
>> programs.  Probably he just kills the threads after they pass some
>> time threshold?
>
> I'm under the impression that Python doesn't really allow you to kill a
> thread after a time period.
> It's not portable to do so....

He's using C#, not Python.  And anyway, you can cooperatively request
threads to shut down; just have the Brainfuck interpreter thread check
for a shutdown request every N cycles, or even just place the timeout
in the interpreter thread itself.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to