[Haskell-cafe] Concurrency question

Dmitry Vyal akamaus at gmail.com
Sun Sep 4 03:09:45 EDT 2005


Hi, everyone!

I have a function, which sometimes takes a long time to compute or even
may loop forever. So I want to limit it in time somehow.

I tried to run it in another thread in order to kill it after its time
lapsed. But it seems to lock out other threads so they can't terminate it.

I wonder is there some clever way of dealing with such situation 
(running a computation in background for specific time) ?

Thanks a lot.


More information about the Haskell-Cafe mailing list