[Haskell-cafe] Re: Threads with high CPU usage
bulat.ziganshin at gmail.com
Mon Dec 22 04:56:22 EST 2008
Monday, December 22, 2008, 1:57:22 AM, you wrote:
try -threaded, +RTS -N2, and forkOS simultaneously. it may work - i
don't see reasons why other threads should be freezd why one does
nother solution is to compile library with unsafe call changed to
safe. this change is always safe but make call ~10mcs slower :)
> Hi Mads,
> I just noticed that too.
> I had been wondering why this problem does not occur with the sample app
> from RWH eventhough I was employing the same technics as they did.
> It just occured to me that all the DB interactions in their app are fairly
> short and thus the problem never becomes apparent.
> Thanks everyone, I was going crazy here, couldn't figure out what I was
> doing wrong.
> Would anyone happen to know of a "safe" alternative to HDBC?
> Am 21.12.2008, 23:39 Uhr, schrieb Mads Lindstrøm
> <mads_lindstroem at yahoo.dk>:
>> Hi Günther,
>>> Hi Mads,
>>> I'm using HDBC with sqlite3
>> Looking at
>> you can see that HDBC-sqlite's foreign calls are indeed marked unsafe.
>>> Haskell-Cafe mailing list
>>> Haskell-Cafe at haskell.org
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe