[Haskell-cafe] Re: Threads with high CPU usage
Sterling Clover
s.clover at gmail.com
Mon Dec 22 18:00:48 EST 2008
Thanks John! I've been running into this quite a bit with the ODBC backend
as well. Having an entire server app freeze because MS SQL Server decides to
deadlock is rather unpleasant.
Cheers,
Sterl.
On Mon, Dec 22, 2008 at 3:59 PM, John Goerzen <jgoerzen at complete.org> wrote:
> On Mon, Dec 22, 2008 at 04:28:03PM -0000, Bayley, Alistair wrote:
> > > From: haskell-cafe-bounces at haskell.org
> > > [mailto:haskell-cafe-bounces at haskell.org] On Behalf Of Günther Schmidt
> > >
> > > I understand that Takusen does not use "unsafe" calls and
> > > would like to
> > > try it with that one then, but haven't find enough docs yet
> > > on how to use
> > > Takusen.
> >
> > Not a lot of detailed examples exist for Takusen. I'm hoping the
> documentation for Database.Enumerator is a reasonable place to start.
> > http://darcs.haskell.org/takusen/doc/html/Database-Enumerator.html
> >
> > I just reviewed the Takusen code and, for no apparent reason, the ODBC
> module specifies unsafe for all of its FFI imports, but the other modules do
> not (so they get the default, which I assume is safe). I also was not aware
> of unsafe calls blocking other threads. I'll change the ODBC imports to be
> safe (or rather, unspecified).
>
> Makes sense. I will make the similar change in all HDBC backends.
>
> -- John
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20081222/d3410734/attachment.htm
More information about the Haskell-Cafe
mailing list