unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Kevin Ryde <user42@zip.com.au>
Cc: Guile Development <guile-devel@gnu.org>
Subject: Re: A guile story
Date: Wed, 29 Nov 2006 07:09:07 +1100	[thread overview]
Message-ID: <87lklv2v18.fsf@zip.com.au> (raw)
In-Reply-To: <874pte9sz3.fsf@ossau.uklinux.net> (Neil Jerram's message of "Sun, 05 Nov 2006 08:51:28 +0000")

Neil Jerram <neil@ossau.uklinux.net> writes:
>
> I eventually narrowed this down to the interaction between calling
> accept on the main FTP server thread at the same time as read on the
> FTP data connection thread (which is where the breakpoint was hit).
> At least, the problem was apparently fixed by inserting a select
> before the accept, so that the accept never blocked.  I'm aware that
> this problem has been reported before, and that someone prepared a
> patch to fix it, but (i) I thought we had applied that patch, and (ii)
> I thought the problem affected coop threads only, not pthreads.

I ran into recvfrom() blocking all threads not so long ago too.  I
forget if I posted here about it, but I put a remark in the manual,

     On a GNU/Linux system `recvfrom!' is not multi-threading, all
     threads stop while a `recvfrom!' call is in progress.  An
     application may need to use `select', `O_NONBLOCK' or
     `MSG_DONTWAIT' to avoid this.

It's tempting to try to do better in guile, though no doubt it'd help
everybody if it could be improved in libc or libpthreads or wherever.


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


      parent reply	other threads:[~2006-11-28 20:09 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-05  8:51 A guile story Neil Jerram
2006-11-05 13:20 ` Andy Wingo
2006-11-05 21:42   ` Neil Jerram
2006-11-06  9:12     ` Ludovic Courtès
2006-11-07 10:24       ` Neil Jerram
2006-11-07 13:01         ` Ludovic Courtès
2006-11-05 23:22   ` Neil Jerram
2006-11-06  9:24 ` Serious GC problem in HEAD Ludovic Courtès
2006-11-07 10:19   ` Neil Jerram
2006-11-07 12:51     ` Ludovic Courtès
2006-11-08 10:00   ` Ludovic Courtès
2006-11-19 15:02     ` Neil Jerram
2006-11-20 13:09       ` Ludovic Courtès
2006-11-29 23:34     ` Kevin Ryde
2006-11-30 15:11       ` Ludovic Courtès
2006-11-28 20:09 ` Kevin Ryde [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lklv2v18.fsf@zip.com.au \
    --to=user42@zip.com.au \
    --cc=guile-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).