[Haskell-cafe] Re: Threads with high CPU usage
Bulat Ziganshin
bulat.ziganshin at gmail.com
Mon Dec 22 04:56:22 EST 2008
Hello Günther,
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
unsafe call
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?
> Günther
> 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
>> http://software.complete.org/software/repositories/entry/hdbc-sqlite3/Database/HDBC/Sqlite3/Connection.hs
>> and
>> http://software.complete.org/software/repositories/entry/hdbc-sqlite3/Database/HDBC/Sqlite3/Statement.hsc
>> you can see that HDBC-sqlite's foreign calls are indeed marked unsafe.
>>
>> /Mads
>>
>>>
>>> Günther
>>>
>>> _______________________________________________
>>> Haskell-Cafe mailing list
>>> Haskell-Cafe at haskell.org
>>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>>
>>
>> _______________________________________________
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org
>> http://www.haskell.org/mailman/listinfo/haskell-cafe
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
--
Best regards,
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe
mailing list