[Haskell-cafe] Threads with high CPU usage
Brandon S. Allbery KF8NH
allbery at ece.cmu.edu
Sun Dec 21 17:09:32 EST 2008
On 2008 Dec 21, at 16:47, Don Stewart wrote:
> redcom:
>> The long running process is pretty atomic, it's a single query to the
>> database which takes up to a minute to complete so I don't see a
>> chance to
>> squeeze a "mainIteration" in there.
>>
>
> How are you compiling this code (-O -threaded ?) and what does the
> forkIO'd thread do? Does it allocate?
Sounds to me like it's making FFI calls to a database library. I
smell bound threads, especially if the UI also makes FFI calls.
--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university KF8NH
More information about the Haskell-Cafe
mailing list